parsers: Remove dead get_ns methods

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2020-01-22 00:49:08 +01:00
parent fbb0edd93b
commit 0377b5658a

View file

@ -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 sessions content, there can be multiple content in one
/// session.