From 2756044ee39e713b4abd5e29298de88129c115ce Mon Sep 17 00:00:00 2001 From: Brooks Prumo Date: Thu, 16 Sep 2021 15:17:44 -0500 Subject: [PATCH] remove addref and unref --- bucket_map/src/bucket_map.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/bucket_map/src/bucket_map.rs b/bucket_map/src/bucket_map.rs index 12a3da78a1..dacd5bf1bb 100644 --- a/bucket_map/src/bucket_map.rs +++ b/bucket_map/src/bucket_map.rs @@ -196,20 +196,6 @@ impl BucketMap { 0 } } - - /// Increment the refcount for Pubkey `key` - pub fn addref(&self, key: &Pubkey) -> Option { - let ix = self.bucket_ix(key); - let mut bucket = self.buckets[ix].write().unwrap(); - bucket.as_mut()?.addref(key) - } - - /// Decrement the refcount for Pubkey `key` - pub fn unref(&self, key: &Pubkey) -> Option { - let ix = self.bucket_ix(key); - let mut bucket = self.buckets[ix].write().unwrap(); - bucket.as_mut()?.unref(key) - } } /// Look at the first 8 bytes of the input and reinterpret them as a u64