Skip to content

Commit

Permalink
chore: remove unused variable new_version in bulk_insert (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
arriqaaq authored Oct 1, 2024
1 parent 9e87049 commit 11fdf7e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/art.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,6 @@ impl<P: KeyTrait, V: Clone> Tree<P, V> {
check_version: bool,
) -> Result<(), TrieError> {
let curr_version = self.version();
let mut new_version = 0;

for kv in kv_pairs {
let k = kv.key.clone(); // Clone the key
Expand Down Expand Up @@ -1051,11 +1050,6 @@ impl<P: KeyTrait, V: Clone> Tree<P, V> {
}

self.size += 1;

// Update new_version if necessary
if t > new_version {
new_version = t;
}
}

Ok(())
Expand Down

0 comments on commit 11fdf7e

Please sign in to comment.