parsers: Remove dead get_ns methods

Maxime “pep” Buquet created

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>

Change summary

xmpp-parsers/src/jingle.rs | 20 --------------------
1 file changed, 20 deletions(-)

Detailed changes

xmpp-parsers/src/jingle.rs 🔗

@@ -205,15 +205,6 @@ impl From<Description> 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<Transport> 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.