From 537ba957e4a3c5f98b29b20676d8b77bd114e98f Mon Sep 17 00:00:00 2001 From: shockrah Date: Sat, 8 Aug 2020 00:30:45 -0700 Subject: [PATCH] removed dead code --- server/src/channels.rs | 16 ---------------- 1 file changed, 16 deletions(-) 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