diff --git a/xmpp-parsers/src/jingle.rs b/xmpp-parsers/src/jingle.rs index 5921d887..d499038f 100644 --- a/xmpp-parsers/src/jingle.rs +++ b/xmpp-parsers/src/jingle.rs @@ -205,15 +205,6 @@ impl From for Element { } } -impl Description { - fn get_ns(&self) -> String { - match self { - Description::Rtp(_) => String::from(ns::JINGLE_RTP), - Description::Unknown(elem) => elem.ns().unwrap_or_else(|| String::new()), - } - } -} - /// Enum wrapping all of the various supported transports of a Content. #[derive(Debug, Clone)] pub enum Transport { @@ -275,17 +266,6 @@ impl From for Element { } } -impl Transport { - fn get_ns(&self) -> String { - match self { - Transport::IceUdp(_) => String::from(ns::JINGLE_ICE_UDP), - Transport::Ibb(_) => String::from(ns::JINGLE_IBB), - Transport::Socks5(_) => String::from(ns::JINGLE_S5B), - Transport::Unknown(elem) => elem.ns().unwrap_or_else(|| String::new()), - } - } -} - generate_element!( /// Describes a session’s content, there can be multiple content in one /// session.