changeset 46:3dac643ee26a

Remove last unused functions.
author Lewin Bormann <lbo@spheniscida.de>
date Sun, 11 Mar 2018 16:57:21 +0100
parents 088c7924e3f0
children e2e8dbf80106
files src/filter_block.rs src/table_builder.rs
diffstat 2 files changed, 0 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/src/filter_block.rs	Sun Mar 11 16:54:53 2018 +0100
+++ b/src/filter_block.rs	Sun Mar 11 16:57:21 2018 +0100
@@ -46,10 +46,6 @@
         }
     }
 
-    pub fn size_estimate(&self) -> usize {
-        self.filters.len() + 4 * self.filter_offsets.len() + 4 + 1
-    }
-
     pub fn filter_name(&self) -> &'static str {
         self.policy.name()
     }
--- a/src/table_builder.rs	Sun Mar 11 16:54:53 2018 +0100
+++ b/src/table_builder.rs	Sun Mar 11 16:57:21 2018 +0100
@@ -122,20 +122,6 @@
         self.num_entries
     }
 
-    fn size_estimate(&self) -> usize {
-        let mut size = 0;
-        if let Some(ref b) = self.data_block {
-            size += b.size_estimate();
-        }
-        if let Some(ref b) = self.index_block {
-            size += b.size_estimate();
-        }
-        if let Some(ref b) = self.filter_block {
-            size += b.size_estimate();
-        }
-        size + self.offset + FULL_FOOTER_LENGTH
-    }
-
     /// Add a key to the table. The key must be lexically greater or equal to the one that was
     /// previously added.
     pub fn add(&mut self, key: &[u8], val: &[u8]) -> Result<()> {