remove unused code

This commit is contained in:
Qyriad 2026-03-25 22:08:39 +01:00
parent ccd37ee169
commit c60a145587

View file

@ -20,7 +20,7 @@ use rustix::{
}; };
mod rustix { mod rustix {
pub use rustix::process::{getuid, pidfd_open, waitid}; pub use rustix::process::waitid;
pub use rustix::*; pub use rustix::*;
} }
@ -87,42 +87,6 @@ fn next_token() -> Token {
Token(tok) Token(tok)
} }
trait EventExt {
type Display;
fn display(&self) -> Self::Display;
}
#[derive(Copy)]
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
struct EventDisplay {
token: Token,
error: bool,
writable: bool,
write_closed: bool,
readable: bool,
read_closed: bool,
}
impl EventExt for Event {
type Display = EventDisplay;
fn display(&self) -> Self::Display {
EventDisplay {
token: self.token(),
error: self.is_error(),
writable: self.is_writable(),
write_closed: self.is_write_closed(),
readable: self.is_readable(),
read_closed: self.is_read_closed(),
}
}
}
impl Display for EventDisplay {
fn fmt(&self, f: &mut Formatter) -> FmtResult {
todo!()
}
}
#[derive(Debug)] #[derive(Debug)]
pub struct Daemon { pub struct Daemon {
config_path: Arc<Path>, config_path: Arc<Path>,