@ -176,10 +176,6 @@ impl StrLookup for DatasetView {
self.reader.get_str(key)?
})
}
fn contains_str(&self, key: &StrHash) -> Result<bool, StorageError> {
Ok(self.extra.borrow().contains_key(key) || self.reader.contains_str(key)?)
struct EncodedDatasetSpec {
@ -650,10 +650,6 @@ mod tests {
fn get_str(&self, key: &StrHash) -> Result<Option<String>, StorageError> {
Ok(self.id2str.borrow().get(key).cloned())
Ok(self.id2str.borrow().contains_key(key))
impl MemoryStrStore {
@ -864,10 +864,6 @@ impl StrLookup for StorageReader {
self.get_str(key)
self.contains_str(key)
pub struct StorageWriter<'a> {
@ -701,8 +701,6 @@ impl From<QuadRef<'_>> for EncodedQuad {
pub trait StrLookup {
fn get_str(&self, key: &StrHash) -> Result<Option<String>, StorageError>;
fn contains_str(&self, key: &StrHash) -> Result<bool, StorageError>;
pub fn insert_term<F: FnMut(&StrHash, &str) -> Result<(), StorageError>>(