From 3e95a135f67b52589957c14595ad3837c7f2f1e5 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 3 Apr 2013 02:43:29 -0500 Subject: actually, let's not reexport the termios stuff at the top level --- src/ios.rs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/ios.rs') diff --git a/src/ios.rs b/src/ios.rs index 168d3a0..502b31e 100644 --- a/src/ios.rs +++ b/src/ios.rs @@ -1,4 +1,4 @@ -use core::libc::{c_int,c_uint,c_void}; +use core::libc::{c_int,c_void}; use util::guard; pub fn cooked () -> int { @@ -24,15 +24,6 @@ pub fn preserve (body: &fn () -> T) -> T { } } -pub fn size() -> (uint, uint) { - let cols: c_uint = 0; - let rows: c_uint = 0; - unsafe { - c::size(&cols, &rows) - } - (cols as uint, rows as uint) -} - #[link_name = "termios_wrapper"] extern mod c { fn cooked () -> c_int; @@ -42,6 +33,4 @@ extern mod c { fn get() -> *c_void; fn set(t: *c_void); - - fn size(cols: *c_uint, rows: *c_uint); } -- cgit v1.2.3-54-g00ecf