From 1f80eb61edf268b046cef3441e26ed86bffa289b Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Wed, 29 Oct 2025 12:43:25 +0000 Subject: [PATCH] cli/terminal: remove unused trait --- crates/radicle-cli/src/terminal.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/crates/radicle-cli/src/terminal.rs b/crates/radicle-cli/src/terminal.rs index 07a5a11f..7cd024d3 100644 --- a/crates/radicle-cli/src/terminal.rs +++ b/crates/radicle-cli/src/terminal.rs @@ -36,21 +36,6 @@ impl Context for Profile { } } -/// A command that can be run. -pub trait Command { - /// Run the command, given arguments and a context. - fn run(self, args: A, context: C) -> anyhow::Result<()>; -} - -impl Command for F -where - F: FnOnce(A, C) -> anyhow::Result<()>, -{ - fn run(self, args: A, context: C) -> anyhow::Result<()> { - self(args, context) - } -} - /// Execute a function `cmd` that runs a command with parsed the `args` /// and a default context. pub fn run_command_fn(cmd: F, args: P, ctx: C) -> !