Skip to content

Commit

Permalink
Support notification on eviction
Browse files Browse the repository at this point in the history
Remove unused function and struct.
  • Loading branch information
tatsuya6502 committed Jul 4, 2022
1 parent 2aff444 commit 317b0ab
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion src/future/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ use std::{
/// ## Delivery Modes for Eviction Listener
///
/// The [`DeliveryMode`][delivery-mode] specifies how and when an eviction
/// notifications should be delivered to an eviction listener. Currently, the
/// notification should be delivered to an eviction listener. Currently, the
/// `future::Cache` supports only one delivery mode: `Queued` mode.
///
/// A future version of `future::Cache` will support `Immediate` mode, which will be
Expand Down
4 changes: 0 additions & 4 deletions src/notification/notifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,6 @@ impl<K, V> BlockingRemovalNotifier<K, V> {
}
}

// pub(crate) struct NonBlockingRemovalNotifier<K, V> {
// _phantom: std::marker::PhantomData<(K, V)>,
// }

pub(crate) struct ThreadPoolRemovalNotifier<K, V> {
snd: Sender<RemovedEntries<K, V>>,
state: Arc<NotifierState<K, V>>,
Expand Down
4 changes: 0 additions & 4 deletions src/sync_base/base_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -566,10 +566,6 @@ impl<'a, K, V> EvictionState<'a, K, V> {
self.notifier.is_some()
}

// fn is_batch_notification_supported(&self) -> bool {
// self.removed_entries.is_some()
// }

fn add_removed_entry(
&mut self,
key: Arc<K>,
Expand Down

0 comments on commit 317b0ab

Please sign in to comment.