disallow (and remove) dead-code

This commit is contained in:
Niko Matsakis 2019-07-05 05:58:10 -04:00
parent 6252430a91
commit e4cca9b8ff
3 changed files with 0 additions and 8 deletions

View file

@ -123,8 +123,6 @@ where
.or_insert_with(|| Arc::new(Slot::new(key.clone()))) .or_insert_with(|| Arc::new(Slot::new(key.clone())))
.clone() .clone()
} }
fn remove_lru(&self) {}
} }
impl<DB, Q, MP> QueryStorageOps<DB, Q> for DerivedStorage<DB, Q, MP> impl<DB, Q, MP> QueryStorageOps<DB, Q> for DerivedStorage<DB, Q, MP>

View file

@ -1,6 +1,5 @@
#![warn(rust_2018_idioms)] #![warn(rust_2018_idioms)]
#![warn(missing_docs)] #![warn(missing_docs)]
#![allow(dead_code)]
//! The salsa crate is a crate for incremental recomputation. It //! The salsa crate is a crate for incremental recomputation. It
//! permits you to define a "database" of queries with both inputs and //! permits you to define a "database" of queries with both inputs and

View file

@ -159,11 +159,6 @@ where
db.for_each_query(|query_storage| query_storage.sweep(db, strategy)); db.for_each_query(|query_storage| query_storage.sweep(db, strategy));
} }
/// True if `d` represents the max durability level.
pub(crate) fn is_constant(&self, d: Durability) -> bool {
d == self.max_durability()
}
/// Returns the max durability, used for constants. /// Returns the max durability, used for constants.
pub(crate) fn max_durability(&self) -> Durability { pub(crate) fn max_durability(&self) -> Durability {
Durability::new(self.shared_state.revisions.len() - 1) Durability::new(self.shared_state.revisions.len() - 1)