Remove unused function ProgramMemory::get_tags (#3033)

Seems to be unused since #2941.
This commit is contained in:
Jonathan Tran
2024-07-16 15:12:05 -04:00
committed by GitHub
parent 65cd9fab64
commit d9d0a72306

View File

@ -100,18 +100,6 @@ impl ProgramMemory {
})
.collect()
}
/// Get all TagDeclarators and TagIdentifiers in the memory.
pub fn get_tags(&self) -> HashMap<String, MemoryItem> {
self.root
.values()
.filter_map(|item| match item {
MemoryItem::TagDeclarator(t) => Some((t.name.to_string(), item.clone())),
MemoryItem::TagIdentifier(t) => Some((t.value.to_string(), item.clone())),
_ => None,
})
.collect::<HashMap<String, MemoryItem>>()
}
}
impl Default for ProgramMemory {