From fe8dccd5df3effd319260109c35f000c7313c116 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 18 May 2017 23:32:26 +0100 Subject: [PATCH] presence: Remove now-unused enum values. --- src/presence.rs | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/presence.rs b/src/presence.rs index f354d310..e1212c74 100644 --- a/src/presence.rs +++ b/src/presence.rs @@ -48,9 +48,6 @@ pub type Priority = i8; /// Lists every known payload of a ``. #[derive(Debug, Clone)] pub enum PresencePayload { - Show(Show), - Status(Status), - Priority(Priority), StanzaError(StanzaError), Delay(Delay), ECaps2(ECaps2), @@ -213,24 +210,6 @@ impl<'a> TryFrom<&'a Element> for Presence { impl<'a> Into for &'a PresencePayload { fn into(self) -> Element { match *self { - PresencePayload::Show(ref show) => { - Element::builder("status") - .ns(ns::JABBER_CLIENT) - .append(show.to_owned()) - .build() - }, - PresencePayload::Status(ref status) => { - Element::builder("status") - .ns(ns::JABBER_CLIENT) - .append(status.to_owned()) - .build() - }, - PresencePayload::Priority(ref priority) => { - Element::builder("status") - .ns(ns::JABBER_CLIENT) - .append(format!("{}", priority)) - .build() - }, PresencePayload::StanzaError(ref stanza_error) => stanza_error.into(), PresencePayload::Delay(ref delay) => delay.into(), PresencePayload::ECaps2(ref ecaps2) => ecaps2.into(),