remove unused
This commit is contained in:
parent
1f7aadff12
commit
81df280b12
@ -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(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -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<io::Error> for Error {
|
||||
|
Loading…
Reference in New Issue
Block a user