diff --git a/components/constellation/constellation.rs b/components/constellation/constellation.rs index 77305b4e153..f70b9b2834f 100644 --- a/components/constellation/constellation.rs +++ b/components/constellation/constellation.rs @@ -1111,9 +1111,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 efc368e0761..e8c26c3cf2f 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.