diff options
author | Alex Auvolat <alex@adnab.me> | 2024-03-08 14:59:56 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2024-03-08 15:09:57 +0100 |
commit | 05c92204ecab87540806073ac4deedfd58519240 (patch) | |
tree | 56e82bc1085e956ea0b2b622c7967d0991113c87 /src/db/lib.rs | |
parent | 44454aac012cbef9158110f2352301ffcfaf31c7 (diff) | |
download | garage-05c92204ecab87540806073ac4deedfd58519240.tar.gz garage-05c92204ecab87540806073ac4deedfd58519240.zip |
[rm-sled] Remove counted_tree_hack
Diffstat (limited to 'src/db/lib.rs')
-rw-r--r-- | src/db/lib.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/db/lib.rs b/src/db/lib.rs index 8975f295..e81c712c 100644 --- a/src/db/lib.rs +++ b/src/db/lib.rs @@ -6,8 +6,6 @@ pub mod lmdb_adapter; #[cfg(feature = "sqlite")] pub mod sqlite_adapter; -pub mod counted_tree_hack; - pub mod open; #[cfg(test)] @@ -187,10 +185,6 @@ impl Tree { pub fn len(&self) -> Result<usize> { self.0.len(self.1) } - #[inline] - pub fn fast_len(&self) -> Result<Option<usize>> { - self.0.fast_len(self.1) - } #[inline] pub fn first(&self) -> Result<Option<(Value, Value)>> { @@ -326,9 +320,6 @@ pub(crate) trait IDb: Send + Sync { fn get(&self, tree: usize, key: &[u8]) -> Result<Option<Value>>; fn len(&self, tree: usize) -> Result<usize>; - fn fast_len(&self, _tree: usize) -> Result<Option<usize>> { - Ok(None) - } fn insert(&self, tree: usize, key: &[u8], value: &[u8]) -> Result<Option<Value>>; fn remove(&self, tree: usize, key: &[u8]) -> Result<Option<Value>>; |