From 011b674d413130763ce6b1a0c9679b8bbaf66aa1 Mon Sep 17 00:00:00 2001 From: Trent Nelson Date: Mon, 21 Sep 2020 14:03:45 -0600 Subject: [PATCH] CLI: Remove unused `KeypairEq` type --- cli/src/cli.rs | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/cli/src/cli.rs b/cli/src/cli.rs index 6abe5152ec..e5c6050675 100644 --- a/cli/src/cli.rs +++ b/cli/src/cli.rs @@ -135,28 +135,6 @@ pub fn fee_payer_arg<'a, 'b>() -> Arg<'a, 'b> { .help(FEE_PAYER_ARG.help) } -#[derive(Debug)] -pub struct KeypairEq(Keypair); - -impl From for KeypairEq { - fn from(keypair: Keypair) -> Self { - Self(keypair) - } -} - -impl PartialEq for KeypairEq { - fn eq(&self, other: &Self) -> bool { - self.pubkey() == other.pubkey() - } -} - -impl std::ops::Deref for KeypairEq { - type Target = Keypair; - fn deref(&self) -> &Self::Target { - &self.0 - } -} - pub fn nonce_authority_arg<'a, 'b>() -> Arg<'a, 'b> { nonce::nonce_authority_arg().requires(NONCE_ARG.name) }