From 508b3fe1f1405bdb8b860d0d63e2c7adfbbd51ca Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 13 Feb 2024 03:14:08 +0100 Subject: Introduce `Kind` in `core::clipboard` --- runtime/src/command/action.rs | 9 --------- 1 file changed, 9 deletions(-) (limited to 'runtime/src/command/action.rs') diff --git a/runtime/src/command/action.rs b/runtime/src/command/action.rs index f04c642c..c9ffe801 100644 --- a/runtime/src/command/action.rs +++ b/runtime/src/command/action.rs @@ -26,9 +26,6 @@ pub enum Action { /// Run a clipboard action. Clipboard(clipboard::Action), - /// Run a clipboard action on primary. - ClipboardPrimary(clipboard::Action), - /// Run a window action. Window(window::Action), @@ -69,9 +66,6 @@ impl Action { Self::Future(future) => Action::Future(Box::pin(future.map(f))), Self::Stream(stream) => Action::Stream(Box::pin(stream.map(f))), Self::Clipboard(action) => Action::Clipboard(action.map(f)), - Self::ClipboardPrimary(action) => { - Action::ClipboardPrimary(action.map(f)) - } Self::Window(window) => Action::Window(window.map(f)), Self::System(system) => Action::System(system.map(f)), Self::Widget(operation) => { @@ -94,9 +88,6 @@ impl fmt::Debug for Action { Self::Clipboard(action) => { write!(f, "Action::Clipboard({action:?})") } - Self::ClipboardPrimary(action) => { - write!(f, "Action::ClipboardPrimary({action:?})") - } Self::Window(action) => { write!(f, "Action::Window({action:?})") } -- cgit