Remove unused CallbackCollection method

This commit is contained in:
Max Brunsfeld 2023-01-06 11:51:36 -08:00
parent 53cb3a4429
commit b762d70202

View file

@ -60,14 +60,6 @@ impl<K: Clone + Hash + Eq + Copy, F> CallbackCollection<K, F> {
self.internal.lock().callbacks.is_empty() self.internal.lock().callbacks.is_empty()
} }
pub fn count(&self, key: K) -> usize {
self.internal
.lock()
.callbacks
.get(&key)
.map_or(0, |callbacks| callbacks.len())
}
pub fn subscribe(&mut self, key: K, subscription_id: usize) -> Subscription<K, F> { pub fn subscribe(&mut self, key: K, subscription_id: usize) -> Subscription<K, F> {
Subscription { Subscription {
key, key,