From 829c9186dea67925639e9636b01bc10589acf3e6 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Mon, 4 Jul 2016 15:14:24 -0700 Subject: [PATCH] Fix some compiler warnings Unused things have been removed. --- src/renderer/mod.rs | 1 - src/term.rs | 12 ------------ 2 files changed, 13 deletions(-) diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs index d5946c76..f0a5fae4 100644 --- a/src/renderer/mod.rs +++ b/src/renderer/mod.rs @@ -25,7 +25,6 @@ use cgmath; use gl::types::*; use gl; use grid::Grid; -use index; use notify::{Watcher as WatcherApi, RecommendedWatcher as Watcher, op}; use term::{self, cell, Cell}; diff --git a/src/term.rs b/src/term.rs index 0471fd28..35683bab 100644 --- a/src/term.rs +++ b/src/term.rs @@ -170,8 +170,6 @@ pub mod mode { pub use self::mode::TermMode; -pub const CURSOR_SHAPE: char = '█'; - pub const DEFAULT_FG: Rgb = Rgb { r: 0xea, g: 0xea, b: 0xea}; pub const DEFAULT_BG: Rgb = Rgb { r: 0, g: 0, b: 0}; pub const TAB_SPACES: usize = 8; @@ -362,11 +360,6 @@ impl Term { &self.size_info } - #[inline] - pub fn grid(&self) -> &Grid { - &self.grid - } - #[inline] pub fn mode(&self) -> &TermMode { &self.mode @@ -382,11 +375,6 @@ impl Term { } } - #[inline] - pub fn cursor(&self) -> &Cursor { - &self.cursor - } - /// Set character in current cursor position fn set_char(&mut self, c: char) { if self.cursor.col == self.grid.num_cols() {