From b762d70202ffb71b053b4f83b085d8db0b710da1 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Fri, 6 Jan 2023 11:51:36 -0800 Subject: [PATCH] Remove unused CallbackCollection method --- crates/gpui/src/app/callback_collection.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/crates/gpui/src/app/callback_collection.rs b/crates/gpui/src/app/callback_collection.rs index 45479eabad..7496d71501 100644 --- a/crates/gpui/src/app/callback_collection.rs +++ b/crates/gpui/src/app/callback_collection.rs @@ -60,14 +60,6 @@ impl CallbackCollection { 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 { Subscription { key,