mirror of
https://github.com/wez/wezterm.git
synced 2024-11-22 22:42:48 +03:00
remove some unused code
This commit is contained in:
parent
0ab8cf1eec
commit
bf854d0eb0
@ -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();
|
||||
|
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user