From 79cd51a13f39e6d14cf3c9a68825be44cb460aa4 Mon Sep 17 00:00:00 2001 From: Nicolas del Valle Date: Sun, 13 Oct 2024 21:43:18 +0200 Subject: [PATCH] Remove not used fns --- src/store.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/store.rs b/src/store.rs index 6ba9371..73e7f0c 100644 --- a/src/store.rs +++ b/src/store.rs @@ -180,8 +180,6 @@ impl<'a> InnerStoreLocked<'a> { self.set(key.to_string(), value.clone().into()); value.parse::().map_err(|_| err.to_string()) - - // Ok(value) } fn remove_expired_keys(&mut self) -> Option { @@ -258,14 +256,6 @@ async fn remove_expired_keys(store: Arc) { } } -fn is_float(value: T) -> bool { - if let Some(f) = value.to_f64() { - f.fract() != 0.0 - } else { - false - } -} - #[cfg(test)] mod tests { use super::*;