Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelvlach committed Jan 28, 2024
1 parent 5d9c6f3 commit a1c0fdf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 133 deletions.
12 changes: 4 additions & 8 deletions agdb/src/collections/multi_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,10 +477,6 @@ where
occupancy.set(pos);
self.data.swap(storage, *i, pos)?;

if self.data.state(storage, *i)? == MapValueState::Deleted {
self.data.set_state(storage, *i, MapValueState::Empty)?;
}

if *i == pos {
*i += 1;
}
Expand Down Expand Up @@ -513,6 +509,7 @@ where
}
}

#[rustfmt::skip]
fn rehash_values(
&mut self,
storage: &mut Storage<D>,
Expand All @@ -528,8 +525,7 @@ where
self.data.state(storage, i)?,
&mut i,
new_capacity,
&mut occupancy,
)?;
&mut occupancy)?;
}

Ok(())
Expand Down Expand Up @@ -843,8 +839,8 @@ mod tests {
.map(|i| (format!("db_user{i}"), i.to_string()))
.collect();

for (user, db) in users {
map.insert(&mut storage, &user, &db).unwrap();
for (user, value) in users {
map.insert(&mut storage, &user, &value).unwrap();
}

for i in range {
Expand Down
1 change: 0 additions & 1 deletion agdb/src/test_utilities.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
pub mod collision_value;
pub mod test_file;
124 changes: 0 additions & 124 deletions agdb/src/test_utilities/collision_value.rs

This file was deleted.

0 comments on commit a1c0fdf

Please sign in to comment.