Skip to content

Commit

Permalink
Remove not used fns
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelvalle committed Oct 13, 2024
1 parent 20f56c8 commit 79cd51a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,6 @@ impl<'a> InnerStoreLocked<'a> {
self.set(key.to_string(), value.clone().into());

value.parse::<R>().map_err(|_| err.to_string())

// Ok(value)
}

fn remove_expired_keys(&mut self) -> Option<Instant> {
Expand Down Expand Up @@ -258,14 +256,6 @@ async fn remove_expired_keys(store: Arc<InnerStore>) {
}
}

fn is_float<T: ToPrimitive>(value: T) -> bool {
if let Some(f) = value.to_f64() {
f.fract() != 0.0
} else {
false
}
}

#[cfg(test)]
mod tests {
use super::*;
Expand Down

0 comments on commit 79cd51a

Please sign in to comment.