removed dead code

This commit is contained in:
shockrah 2020-08-08 00:30:45 -07:00
parent b3d603eecc
commit 537ba957e4

View File

@ -1,5 +1,3 @@
use std::borrow::Cow;
use hyper::{StatusCode, Response, Body};
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