Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaskrause committed Aug 29, 2024
1 parent af2b764 commit 7332f15
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions core/src/annostorage/inmemory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use rustc_hash::FxHashSet;
use smartstring::alias::String;
use smartstring::{LazyCompact, SmartString};
use std::borrow::Cow;
use std::collections::{BTreeMap, HashMap, HashSet};
use std::collections::{BTreeMap, HashMap};
use std::hash::Hash;
use std::path::Path;
use std::sync::Arc;
Expand Down Expand Up @@ -319,12 +319,6 @@ where
let mut result = false;

if let Some(all_annos) = self.by_container.remove(item) {
// Collect relevevant annotation symbols to remove them en-bloc
let all_affected_annos: HashSet<_> = all_annos.iter().map(|a| a.key).collect();
for anno_key in all_affected_annos {
if let Some(by_anno_entry) = self.by_anno.get_mut(&anno_key) {}
}

for anno in all_annos {
// since value was found, also remove the item from the other containers
self.remove_element_from_by_anno(&anno, item);
Expand Down

0 comments on commit 7332f15

Please sign in to comment.