mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove not needed DummyClipboardContext
This commit is contained in:
parent
f4d972adb2
commit
05a6495d43
1 changed files with 0 additions and 22 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue