mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 13:10:54 +00:00
Remove unused CallbackCollection method
This commit is contained in:
parent
53cb3a4429
commit
b762d70202
1 changed files with 0 additions and 8 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue