mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-23 05:07:27 +00:00
disallow (and remove) dead-code
This commit is contained in:
parent
6252430a91
commit
e4cca9b8ff
3 changed files with 0 additions and 8 deletions
|
@ -123,8 +123,6 @@ where
|
|||
.or_insert_with(|| Arc::new(Slot::new(key.clone())))
|
||||
.clone()
|
||||
}
|
||||
|
||||
fn remove_lru(&self) {}
|
||||
}
|
||||
|
||||
impl<DB, Q, MP> QueryStorageOps<DB, Q> for DerivedStorage<DB, Q, MP>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#![warn(rust_2018_idioms)]
|
||||
#![warn(missing_docs)]
|
||||
#![allow(dead_code)]
|
||||
|
||||
//! The salsa crate is a crate for incremental recomputation. It
|
||||
//! permits you to define a "database" of queries with both inputs and
|
||||
|
|
|
@ -159,11 +159,6 @@ where
|
|||
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.
|
||||
pub(crate) fn max_durability(&self) -> Durability {
|
||||
Durability::new(self.shared_state.revisions.len() - 1)
|
||||
|
|
Loading…
Reference in a new issue