Skip to content

Commit

Permalink
list: remove unnecessary Copy and methods
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtomjhj committed Dec 14, 2023
1 parent bb918a4 commit 0ee04c7
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/lockfree/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl<K, V> Drop for List<K, V> {
}

/// Linked list cursor.
#[derive(Debug, Copy)]
#[derive(Debug)]
pub struct Cursor<'g, K, V> {
prev: &'g Atomic<Node<K, V>>,
// Tag of `curr` should always be zero so when `curr` is stored in a `prev`, we don't store a
Expand Down Expand Up @@ -384,14 +384,4 @@ where
pub fn harris_herlihy_shavit_lookup<'g>(&'g self, key: &K, guard: &'g Guard) -> Option<&'g V> {
self.lookup(key, Cursor::find_harris_herlihy_shavit, guard)
}

/// Omitted
pub fn harris_herlihy_shavit_insert(&self, key: K, value: V, guard: &Guard) -> bool {
self.insert(key, value, Cursor::find_harris_michael, guard)
}

/// Omitted
pub fn harris_herlihy_shavit_delete<'g>(&'g self, key: &K, guard: &'g Guard) -> Option<&'g V> {
self.delete(key, Cursor::find_harris_michael, guard)
}
}

0 comments on commit 0ee04c7

Please sign in to comment.