removed dead code
This commit is contained in:
parent
b3d603eecc
commit
537ba957e4
@ -1,5 +1,3 @@
|
|||||||
use std::borrow::Cow;
|
|
||||||
|
|
||||||
use hyper::{StatusCode, Response, Body};
|
use hyper::{StatusCode, Response, Body};
|
||||||
use hyper::header::HeaderValue;
|
use hyper::header::HeaderValue;
|
||||||
|
|
||||||
@ -35,20 +33,6 @@ impl ChannelType {
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// whole ass function exists because serde_json is a walking pos
|
|
||||||
pub fn from_i64_opt(x: Option<i64>) -> ChannelType {
|
|
||||||
if let Some(i) = x {
|
|
||||||
match i {
|
|
||||||
1 => ChannelType::Voice,
|
|
||||||
2 => ChannelType::Text,
|
|
||||||
_ => ChannelType::Undefined
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
ChannelType::Undefined
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Primary way of interpretting sql data on our channels table
|
// Primary way of interpretting sql data on our channels table
|
||||||
|
Loading…
Reference in New Issue
Block a user