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)); }