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 {