From 81df280b1282e7b78e4ee631296b3fabfc68299e Mon Sep 17 00:00:00 2001 From: Bruce Leidl Date: Wed, 11 Sep 2019 16:30:13 -0400 Subject: [PATCH] remove unused --- rust/src/system/epoll.rs | 2 -- rust/src/system/errno.rs | 4 ---- 2 files changed, 6 deletions(-) diff --git a/rust/src/system/epoll.rs b/rust/src/system/epoll.rs index fb0b63b..9a778c0 100644 --- a/rust/src/system/epoll.rs +++ b/rust/src/system/epoll.rs @@ -32,7 +32,6 @@ impl Event { pub struct EPoll { fd: RawFd, - events: PollEvents, } impl EPoll { @@ -41,7 +40,6 @@ impl EPoll { -1 => Err(Error::last_os_error()), fd => Ok(EPoll { fd, - events: PollEvents::new(), }) } } diff --git a/rust/src/system/errno.rs b/rust/src/system/errno.rs index 5db0750..8b13c25 100644 --- a/rust/src/system/errno.rs +++ b/rust/src/system/errno.rs @@ -16,10 +16,6 @@ impl Error { pub fn last_os_error() -> Error { Error(unsafe { *__errno_location() }) } - - pub fn errno(self) -> i32 { - self.0 - } } impl From for Error {