parsers: Remove dead get_ns methods
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
fbb0edd93b
commit
0377b5658a
1 changed files with 0 additions and 20 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue