diff --git a/server/src/channels.rs b/server/src/channels.rs index 81c3a49..c11d3ca 100644 --- a/server/src/channels.rs +++ b/server/src/channels.rs @@ -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) -> 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