From 4faa8e83e4bb52cd0b0d037fed74fd6a6809e867 Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Sat, 24 Feb 2024 00:27:29 -0800 Subject: [PATCH] style: cleanup `insert_only_chashmap.rs` (#63) --- riven/src/util/insert_only_chashmap.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/riven/src/util/insert_only_chashmap.rs b/riven/src/util/insert_only_chashmap.rs index 8aaca79..39617d2 100644 --- a/riven/src/util/insert_only_chashmap.rs +++ b/riven/src/util/insert_only_chashmap.rs @@ -1,4 +1,3 @@ -// use std::borrow::Borrow; use std::collections::HashMap; use std::hash::Hash; use std::sync::Arc; @@ -17,15 +16,6 @@ impl InsertOnlyCHashMap { } } - // #[inline] - // pub fn get(&self, key: &Q) -> Option> - // where - // K: Borrow, - // Q: Hash + Eq, - // { - // self.base.lock().get(key).map(|v| Arc::clone(v)) - // } - #[inline] pub fn get_or_insert_with V>(&self, key: K, default: F) -> Arc { Arc::clone(