Skip to content

Commit bd10330

Browse files
emberianPaul Osborne
authored andcommitted
remove osx-specific Debug impl
1 parent aabe082 commit bd10330

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

src/sys/event.rs

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
use {Error, Result};
55
use errno::Errno;
66
use libc::{timespec, time_t, c_int, c_long, uintptr_t};
7-
use std::fmt;
87
use std::os::unix::io::RawFd;
98

109
pub use self::ffi::kevent as KEvent;
@@ -75,40 +74,6 @@ bitflags!(
7574
}
7675
);
7776

78-
impl fmt::Debug for EventFlag {
79-
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
80-
let mut one = false;
81-
let flags = [
82-
(EV_ADD, "EV_ADD"),
83-
(EV_DELETE, "EV_DELETE"),
84-
(EV_ENABLE, "EV_ENABLE"),
85-
(EV_DISABLE, "EV_DISABLE"),
86-
(EV_RECEIPT, "EV_RECEIPT"),
87-
(EV_ONESHOT, "EV_ONESHOT"),
88-
(EV_CLEAR, "EV_CLEAR"),
89-
(EV_DISPATCH, "EV_DISPATCH"),
90-
(EV_SYSFLAGS, "EV_SYSFLAGS"),
91-
(EV_FLAG0, "EV_FLAG0"),
92-
(EV_FLAG1, "EV_FLAG1"),
93-
(EV_EOF, "EV_EOF")];
94-
95-
for &(flag, msg) in flags.iter() {
96-
if self.contains(flag) {
97-
if one { try!(write!(fmt, " | ")) }
98-
try!(write!(fmt, "{}", msg));
99-
100-
one = true
101-
}
102-
}
103-
104-
if !one {
105-
try!(write!(fmt, "<None>"));
106-
}
107-
108-
Ok(())
109-
}
110-
}
111-
11277
bitflags!(
11378
flags FilterFlag: u32 {
11479
const NOTE_TRIGGER = 0x01000000,

0 commit comments

Comments
 (0)