Fix some compiler warnings
Unused things have been removed.
This commit is contained in:
parent
14ec851c69
commit
829c9186de
|
@ -25,7 +25,6 @@ use cgmath;
|
||||||
use gl::types::*;
|
use gl::types::*;
|
||||||
use gl;
|
use gl;
|
||||||
use grid::Grid;
|
use grid::Grid;
|
||||||
use index;
|
|
||||||
use notify::{Watcher as WatcherApi, RecommendedWatcher as Watcher, op};
|
use notify::{Watcher as WatcherApi, RecommendedWatcher as Watcher, op};
|
||||||
use term::{self, cell, Cell};
|
use term::{self, cell, Cell};
|
||||||
|
|
||||||
|
|
12
src/term.rs
12
src/term.rs
|
@ -170,8 +170,6 @@ pub mod mode {
|
||||||
|
|
||||||
pub use self::mode::TermMode;
|
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_FG: Rgb = Rgb { r: 0xea, g: 0xea, b: 0xea};
|
||||||
pub const DEFAULT_BG: Rgb = Rgb { r: 0, g: 0, b: 0};
|
pub const DEFAULT_BG: Rgb = Rgb { r: 0, g: 0, b: 0};
|
||||||
pub const TAB_SPACES: usize = 8;
|
pub const TAB_SPACES: usize = 8;
|
||||||
|
@ -362,11 +360,6 @@ impl Term {
|
||||||
&self.size_info
|
&self.size_info
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
|
||||||
pub fn grid(&self) -> &Grid<Cell> {
|
|
||||||
&self.grid
|
|
||||||
}
|
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn mode(&self) -> &TermMode {
|
pub fn mode(&self) -> &TermMode {
|
||||||
&self.mode
|
&self.mode
|
||||||
|
@ -382,11 +375,6 @@ impl Term {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
|
||||||
pub fn cursor(&self) -> &Cursor {
|
|
||||||
&self.cursor
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Set character in current cursor position
|
/// Set character in current cursor position
|
||||||
fn set_char(&mut self, c: char) {
|
fn set_char(&mut self, c: char) {
|
||||||
if self.cursor.col == self.grid.num_cols() {
|
if self.cursor.col == self.grid.num_cols() {
|
||||||
|
|
Loading…
Reference in New Issue