Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
ibraheemdev committed Dec 2, 2024
1 parent 62cc479 commit 2d75848
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/raw/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -680,8 +680,6 @@ where
{
// Successfully removed the entry.
UpdateStatus::Replaced(entry) => {
let tid = guard.thread_id();

// Mark the entry as a tombstone.
//
// Note that this might end up being overwritten by the metadata hash
Expand All @@ -694,9 +692,7 @@ where
};

// Decrement the table length.
let tid = guard.thread_id();
let count = &self.count;
let count = count.get(tid);
let count = self.count.get(guard.thread_id());
count.fetch_sub(1, Ordering::Relaxed);

let entry = unsafe { &(*entry.ptr) };
Expand Down

0 comments on commit 2d75848

Please sign in to comment.