From 33a68eb2d59267e24f086f669456c5785f035d9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20W=C3=BClker?= Date: Thu, 15 May 2025 22:20:55 +0200 Subject: [PATCH] Remove `CoreResourceMsg::Synchronize` (#37019) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This message is unused. Signed-off-by: Simon Wülker --- components/net/resource_thread.rs | 3 --- components/shared/net/lib.rs | 2 -- 2 files changed, 5 deletions(-) diff --git a/components/net/resource_thread.rs b/components/net/resource_thread.rs index d361d63f44a..4077256d6ca 100644 --- a/components/net/resource_thread.rs +++ b/components/net/resource_thread.rs @@ -445,9 +445,6 @@ impl ResourceChannelManager { history_states.remove(&history_state); } }, - CoreResourceMsg::Synchronize(sender) => { - let _ = sender.send(()); - }, CoreResourceMsg::ClearCache => { http_state.http_cache.write().unwrap().clear(); }, diff --git a/components/shared/net/lib.rs b/components/shared/net/lib.rs index 05ad102f42f..0126bdbcd80 100644 --- a/components/shared/net/lib.rs +++ b/components/shared/net/lib.rs @@ -517,8 +517,6 @@ pub enum CoreResourceMsg { SetHistoryState(HistoryStateId, Vec), /// Removes history states for the given ids RemoveHistoryStates(Vec), - /// Synchronization message solely for knowing the state of the ResourceChannelManager loop - Synchronize(IpcSender<()>), /// Clear the network cache. ClearCache, /// Send the service worker network mediator for an origin to CoreResourceThread