From e8250cd96ae80860b1602425f71eb66702d70614 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 20 Jun 2024 13:03:59 +1000 Subject: [PATCH] Remove InvalidInternalKey variant from TaprootBuilderError This variant is unused, remove it. Done as part of #2883. --- bitcoin/src/taproot/mod.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/bitcoin/src/taproot/mod.rs b/bitcoin/src/taproot/mod.rs index 5fe0a16b1..74027057f 100644 --- a/bitcoin/src/taproot/mod.rs +++ b/bitcoin/src/taproot/mod.rs @@ -1337,8 +1337,6 @@ pub enum TaprootBuilderError { NodeNotInDfsOrder, /// Two nodes at depth 0 are not allowed. OverCompleteTree, - /// Invalid taproot internal key. - InvalidInternalKey(secp256k1::Error), /// Called finalize on a empty tree. EmptyTree, } @@ -1365,9 +1363,6 @@ impl fmt::Display for TaprootBuilderError { "Attempted to create a tree with two nodes at depth 0. There must\ only be a exactly one node at depth 0", ), - InvalidInternalKey(ref e) => { - write_err!(f, "invalid internal x-only key"; e) - } EmptyTree => { write!(f, "Called finalize on an empty tree") } @@ -1381,7 +1376,6 @@ impl std::error::Error for TaprootBuilderError { use TaprootBuilderError::*; match self { - InvalidInternalKey(e) => Some(e), InvalidMerkleTreeDepth(_) | NodeNotInDfsOrder | OverCompleteTree | EmptyTree => None, } }