From 05a6495d434768b614a267ab4982facb952d207f Mon Sep 17 00:00:00 2001 From: Michal Mieczkowski Date: Mon, 27 May 2019 19:51:37 +0200 Subject: [PATCH] Remove not needed DummyClipboardContext --- components/script/clipboard_provider.rs | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/components/script/clipboard_provider.rs b/components/script/clipboard_provider.rs index 3d67d69bcefe..666bf74c8251 100644 --- a/components/script/clipboard_provider.rs +++ b/components/script/clipboard_provider.rs @@ -5,7 +5,6 @@ use embedder_traits::EmbedderMsg; use ipc_channel::ipc::channel; use script_traits::{ScriptMsg, ScriptToConstellationChan}; -use std::borrow::ToOwned; pub trait ClipboardProvider { // blocking method to get the clipboard contents @@ -30,24 +29,3 @@ impl ClipboardProvider for ScriptToConstellationChan { .unwrap(); } } - -pub struct DummyClipboardContext { - content: String, -} - -impl DummyClipboardContext { - pub fn new(s: &str) -> DummyClipboardContext { - DummyClipboardContext { - content: s.to_owned(), - } - } -} - -impl ClipboardProvider for DummyClipboardContext { - fn clipboard_contents(&mut self) -> String { - self.content.clone() - } - fn set_clipboard_contents(&mut self, s: String) { - self.content = s; - } -}