From 7bccdc52512da7b04d49bee18ef81018b0524e1a Mon Sep 17 00:00:00 2001 From: Brooks Prumo Date: Thu, 16 Sep 2021 15:39:38 -0500 Subject: [PATCH] remove more addref and unref --- bucket_map/src/bucket.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/bucket_map/src/bucket.rs b/bucket_map/src/bucket.rs index 49d5e44ffa..4a9933f264 100644 --- a/bucket_map/src/bucket.rs +++ b/bucket_map/src/bucket.rs @@ -161,18 +161,6 @@ impl Bucket { Err(BucketMapError::IndexNoSpace(index.capacity_pow2)) } - pub fn addref(&mut self, key: &Pubkey) -> Option { - let (elem, _) = self.find_entry_mut(key)?; - elem.ref_count += 1; - Some(elem.ref_count) - } - - pub fn unref(&mut self, key: &Pubkey) -> Option { - let (elem, _) = self.find_entry_mut(key)?; - elem.ref_count -= 1; - Some(elem.ref_count) - } - fn create_key(&self, key: &Pubkey, ref_count: u64) -> Result { Self::bucket_create_key( &self.index,