From 9c74e4d9ce19e338cd4d9a6f38dc856dff836cde Mon Sep 17 00:00:00 2001 From: Michal Mieczkowski Date: Thu, 13 Jun 2019 20:28:49 +0200 Subject: [PATCH] Code cleanup --- components/constellation/constellation.rs | 1 - ports/glutin/browser.rs | 4 +--- ports/glutin/main2.rs | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/components/constellation/constellation.rs b/components/constellation/constellation.rs index cf7f69479fe..9d3b5cf094d 100644 --- a/components/constellation/constellation.rs +++ b/components/constellation/constellation.rs @@ -107,7 +107,6 @@ use canvas::canvas_paint_thread::CanvasPaintThread; use canvas::webgl_thread::WebGLThreads; use canvas_traits::canvas::CanvasId; use canvas_traits::canvas::CanvasMsg; -use clipboard::{ClipboardContext, ClipboardProvider}; use compositing::compositor_thread::CompositorProxy; use compositing::compositor_thread::Msg as ToCompositorMsg; use compositing::SendableFrameTree; diff --git a/ports/glutin/browser.rs b/ports/glutin/browser.rs index bde2b6b80f4..042f84072c7 100644 --- a/ports/glutin/browser.rs +++ b/ports/glutin/browser.rs @@ -354,7 +354,6 @@ where self.handle_key_from_servo(browser_id, key_event); }, EmbedderMsg::GetClipboardContents(sender) => { - println!("glutin/browser.rs GetClipboardContents {:?} ", browser_id); let contents = match self.clipboard_ctx { Some(ref mut ctx) => { match ctx.get_contents() { @@ -372,8 +371,7 @@ where } } EmbedderMsg::SetClipboardContents(text) => { - println!("browser.rs SetClipBoardContents {} {:?}", text, browser_id); - if let Some( ref mut ctx ) = self.clipboard_ctx { + if let Some(ref mut ctx) = self.clipboard_ctx { if let Err(e) = ctx.set_contents(text) { warn!("Error setting clipboard contents ({})", e); } diff --git a/ports/glutin/main2.rs b/ports/glutin/main2.rs index 0e208fabb3c..8f3a1b4fda0 100644 --- a/ports/glutin/main2.rs +++ b/ports/glutin/main2.rs @@ -2,6 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ +extern crate clipboard; #[macro_use] extern crate lazy_static; #[macro_use] @@ -9,7 +10,6 @@ extern crate log; #[cfg(all(feature = "unstable", any(target_os = "macos", target_os = "linux")))] #[macro_use] extern crate sig; -extern crate clipboard; mod app; mod browser;