net_util: tap: remove the Pollable trait impl as it is not used
@@ -11,7 +11,6 @@ use std::os::unix::io::{AsRawFd, FromRawFd, RawFd};
use libc;
use net_sys;
use super::{create_sockaddr, create_socket, Error, Result};
-use sys_util::Pollable;
use sys_util::{ioctl_with_mut_ref, ioctl_with_ref, ioctl_with_val};
/// Handle for a network tap interface.
@@ -212,14 +211,6 @@ impl AsRawFd for Tap {
}
}
-// Safe since the tap fd's lifetime lasts as long as this trait object, and the
-// tap fd is pollable.
-unsafe impl Pollable for Tap {
- fn pollable_fd(&self) -> RawFd {
- self.tap_file.as_raw_fd()
- }
-}
-
#[cfg(test)]
mod tests {
use super::*;
