From 4a5ff01e060293721d10289ec56dbd4c58a0969e Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Wed, 19 Feb 2025 15:55:11 +0100 Subject: [PATCH] Remove `Servo::allow_navigation_request` (#35544) This method is now unused in the new Servo API. Signed-off-by: Martin Robinson --- components/servo/lib.rs | 12 +----------- components/servo/proxies.rs | 2 +- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/components/servo/lib.rs b/components/servo/lib.rs index 6e783152f8f..0005e89fce2 100644 --- a/components/servo/lib.rs +++ b/components/servo/lib.rs @@ -33,7 +33,7 @@ use std::sync::{Arc, Mutex}; use std::thread; pub use base::id::TopLevelBrowsingContextId; -use base::id::{PipelineId, PipelineNamespace, PipelineNamespaceId, WebViewId}; +use base::id::{PipelineNamespace, PipelineNamespaceId, WebViewId}; #[cfg(feature = "bluetooth")] use bluetooth::BluetoothThreadFactory; #[cfg(feature = "bluetooth")] @@ -693,16 +693,6 @@ impl Servo { self.compositor.borrow_mut().start_shutting_down(); } - pub fn allow_navigation_response(&self, pipeline_id: PipelineId, allow: bool) { - let msg = ConstellationMsg::AllowNavigationResponse(pipeline_id, allow); - if let Err(e) = self.constellation_proxy.try_send(msg) { - warn!( - "Sending allow navigation to constellation failed ({:?}).", - e - ); - } - } - pub fn deinit(&self) { self.compositor.borrow_mut().deinit(); } diff --git a/components/servo/proxies.rs b/components/servo/proxies.rs index 248e1e66f66..2d98bbdab6e 100644 --- a/components/servo/proxies.rs +++ b/components/servo/proxies.rs @@ -33,7 +33,7 @@ impl ConstellationProxy { } } - pub fn try_send(&self, msg: ConstellationMsg) -> Result<(), SendError> { + fn try_send(&self, msg: ConstellationMsg) -> Result<(), SendError> { if self.disconnected() { return Err(SendError(msg)); }