remove some unused code

This commit is contained in:
Wez Furlong committed 2018-01-27 22:24:44 -08:00
1 parent 0ab8cf1eec
commit bf854d0eb0
3 files changed
+1 -14

No files matched your search

-5
View File
@@ -464,11 +464,6 @@ impl Terminal {
}
}
/// Feed the terminal parser a single byte of input
pub fn advance(&mut self, byte: u8) {
self.parser.advance(&mut self.state, byte);
}
/// Feed the terminal parser a slice of bytes of input
pub fn advance_bytes<B: AsRef<[u8]>>(&mut self, bytes: B) {
let bytes = bytes.as_ref();
-4
View File
@@ -331,8 +331,6 @@ impl Color {
)
}
&Operator::Dest => dest,
&Operator::Source => *self,
&Operator::Multiply => {
@@ -370,8 +368,6 @@ pub enum Operator {
/// Apply the alpha channel of src and combine src with dest,
/// according to the classic OVER composite operator
Over,
/// Ignore src; leave dest untouched
Dest,
/// Ignore dest; take src as the result of the operation
Source,
/// Multiply src x dest. The result is at least as dark as
+1 -5
View File
@@ -7,7 +7,7 @@ use std::process::Child;
use std::slice;
use term::{self, KeyCode, KeyModifiers};
use xcb;
use xgfx::{self, Connection, Drawable};
use xgfx::{self, Connection};
use xkeysyms;
pub struct TerminalWindow<'a> {
@@ -69,10 +69,6 @@ impl<'a> TerminalWindow<'a> {
})
}
pub fn window_id(&self) -> u32 {
self.window.as_drawable()
}
pub fn show(&self) {
self.window.show();
}