aboutsummaryrefslogtreecommitdiff
path: root/src/tty.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-09-25 19:33:51 -0700
committerJoe Wilm <joe@jwilm.com>2016-09-25 19:33:51 -0700
commit6a5ac20defa558309a674e069f33febde1824c00 (patch)
tree29c9144eb72b11cda867e9a221102622c70559cf /src/tty.rs
parent4a679d711fbb1969af8b957ee40877067527b8b8 (diff)
downloadalacritty-6a5ac20defa558309a674e069f33febde1824c00.tar.gz
alacritty-6a5ac20defa558309a674e069f33febde1824c00.zip
Resolve compiler warnings
Diffstat (limited to 'src/tty.rs')
-rw-r--r--src/tty.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/tty.rs b/src/tty.rs
index 988db37e..6a764616 100644
--- a/src/tty.rs
+++ b/src/tty.rs
@@ -299,15 +299,6 @@ impl Tty {
}
}
- /// Get writer for the TTY
- ///
- /// XXX File is a bad abstraction here; it closes the fd on drop
- pub fn writer(&self) -> File {
- unsafe {
- File::from_raw_fd(self.fd)
- }
- }
-
pub fn resize(&self, rows: usize, cols: usize, px_x: usize, px_y: usize) {
let win = winsize {
ws_row: rows as libc::c_ushort,