From af5b50006fb6df8c59b8a9eb55162c5b56d83cd0 Mon Sep 17 00:00:00 2001 From: Paul Rouget Date: Thu, 3 May 2018 14:06:32 +0800 Subject: [PATCH] Remove useless message --- components/constellation/constellation.rs | 3 --- components/script_traits/script_msg.rs | 3 --- 2 files changed, 6 deletions(-) diff --git a/components/constellation/constellation.rs b/components/constellation/constellation.rs index 93581d9f884..72a4ae2ed62 100644 --- a/components/constellation/constellation.rs +++ b/components/constellation/constellation.rs @@ -1110,9 +1110,6 @@ impl Constellation debug!("constellation got focus message"); self.handle_focus_msg(source_pipeline_id); } - FromScriptMsg::ForwardEvent(destination_pipeline_id, event) => { - self.forward_event(destination_pipeline_id, event); - } FromScriptMsg::GetClipboardContents(sender) => { let contents = match self.clipboard_ctx { Some(ref mut ctx) => match ctx.get_contents() { diff --git a/components/script_traits/script_msg.rs b/components/script_traits/script_msg.rs index d263753c7de..cc0bb7bb2f0 100644 --- a/components/script_traits/script_msg.rs +++ b/components/script_traits/script_msg.rs @@ -3,7 +3,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use AnimationState; -use CompositorEvent; use DocumentState; use IFrameLoadInfo; use IFrameLoadInfoWithData; @@ -82,8 +81,6 @@ pub enum ScriptMsg { CreateCanvasPaintThread(Size2D, IpcSender<(IpcSender, CanvasId)>), /// Notifies the constellation that this frame has received focus. Focus, - /// Forward an event that was sent to the parent window. - ForwardEvent(PipelineId, CompositorEvent), /// Requests that the constellation retrieve the current contents of the clipboard GetClipboardContents(IpcSender), /// Get the browsing context id for a given pipeline.