diff --git a/src/euph/api/packet.rs b/src/euph/api/packet.rs index 0d5b47d..e69de56 100644 --- a/src/euph/api/packet.rs +++ b/src/euph/api/packet.rs @@ -73,19 +73,6 @@ macro_rules! packets { }; } -macro_rules! events { - ( $( $name:ident, )* ) => { - impl Data { - pub fn is_event(&self) -> bool { - match self { - $( Self::$name(_) => true, )* - _ => false, - } - } - } - }; -} - macro_rules! commands { ( $( $cmd:ident => $rpl:ident, )* ) => { $( @@ -129,23 +116,6 @@ packets! { WhoReply, } -events! { - BounceEvent, - DisconnectEvent, - HelloEvent, - JoinEvent, - LoginEvent, - LogoutEvent, - NetworkEvent, - NickEvent, - EditMessageEvent, - PartEvent, - PingEvent, - PmInitiateEvent, - SendEvent, - SnapshotEvent, -} - commands! { Auth => AuthReply, Ping => PingReply, diff --git a/src/replies.rs b/src/replies.rs index 770e8a8..07f4a60 100644 --- a/src/replies.rs +++ b/src/replies.rs @@ -62,10 +62,6 @@ impl Replies { } } - pub fn cancel(&mut self, id: &I) { - self.pending.remove(id); - } - pub fn purge(&mut self) { self.pending.retain(|_, tx| !tx.is_closed()); } diff --git a/src/store.rs b/src/store.rs index e31c526..457b92e 100644 --- a/src/store.rs +++ b/src/store.rs @@ -22,10 +22,6 @@ impl Path { Self(segments) } - pub fn segments(&self) -> &[I] { - &self.0 - } - pub fn push(&mut self, segment: I) { self.0.push(segment) } @@ -33,18 +29,6 @@ impl Path { pub fn first(&self) -> &I { self.0.first().expect("path is not empty") } - - pub fn first_mut(&mut self) -> &mut I { - self.0.first_mut().expect("path is not empty") - } - - pub fn last(&self) -> &I { - self.0.last().expect("path is not empty") - } - - pub fn last_mut(&mut self) -> &mut I { - self.0.last_mut().expect("path is not empty") - } } impl IntoIterator for Path {