@@ -138,7 +138,7 @@ use core::{fmt, hash, str};
138
138
#[ cfg( feature = "std" ) ]
139
139
use std:: error;
140
140
141
- use bitcoin:: hashes:: { hash160, ripemd160, sha256, Hash } ;
141
+ use bitcoin:: hashes:: { hash160, ripemd160, sha256} ;
142
142
use bitcoin:: hex:: DisplayHex ;
143
143
use bitcoin:: { script, Opcode } ;
144
144
@@ -432,8 +432,6 @@ pub enum Error {
432
432
Script ( script:: Error ) ,
433
433
/// rust-bitcoin address error
434
434
AddrError ( bitcoin:: address:: ParseError ) ,
435
- /// rust-bitcoin p2sh address error
436
- AddrP2shError ( bitcoin:: address:: P2shError ) ,
437
435
/// A `CHECKMULTISIG` opcode was preceded by a number > 20
438
436
CmsTooManyKeys ( u32 ) ,
439
437
/// A tapscript multi_a cannot support more than Weight::MAX_BLOCK/32 keys
@@ -516,7 +514,6 @@ impl fmt::Display for Error {
516
514
} ,
517
515
Error :: Script ( ref e) => fmt:: Display :: fmt ( e, f) ,
518
516
Error :: AddrError ( ref e) => fmt:: Display :: fmt ( e, f) ,
519
- Error :: AddrP2shError ( ref e) => fmt:: Display :: fmt ( e, f) ,
520
517
Error :: CmsTooManyKeys ( n) => write ! ( f, "checkmultisig with {} keys" , n) ,
521
518
Error :: Unprintable ( x) => write ! ( f, "unprintable character 0x{:02x}" , x) ,
522
519
Error :: ExpectedChar ( c) => write ! ( f, "expected {}" , c) ,
@@ -597,7 +594,6 @@ impl error::Error for Error {
597
594
| MultipathDescLenMismatch => None ,
598
595
Script ( e) => Some ( e) ,
599
596
AddrError ( e) => Some ( e) ,
600
- AddrP2shError ( e) => Some ( e) ,
601
597
Secp ( e) => Some ( e) ,
602
598
#[ cfg( feature = "compiler" ) ]
603
599
CompilerError ( e) => Some ( e) ,
@@ -644,11 +640,6 @@ impl From<bitcoin::address::ParseError> for Error {
644
640
fn from ( e : bitcoin:: address:: ParseError ) -> Error { Error :: AddrError ( e) }
645
641
}
646
642
647
- #[ doc( hidden) ]
648
- impl From < bitcoin:: address:: P2shError > for Error {
649
- fn from ( e : bitcoin:: address:: P2shError ) -> Error { Error :: AddrP2shError ( e) }
650
- }
651
-
652
643
#[ doc( hidden) ]
653
644
#[ cfg( feature = "compiler" ) ]
654
645
impl From < crate :: policy:: compiler:: CompilerError > for Error {
0 commit comments