From 0377b5658ae6e099fb102d8bb1a5a002ee85b680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Wed, 22 Jan 2020 00:49:08 +0100 Subject: [PATCH] parsers: Remove dead get_ns methods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- xmpp-parsers/src/jingle.rs | 20 -------------------- 1 file changed, 20 deletions(-) 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.