Skip to content

Commit 0356a14

Browse files
committed
remove remaining 0.30 conversion scaffolding
1 parent c929437 commit 0356a14

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

src/hex.rs

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -231,36 +231,6 @@ impl io::Write for HexWriter {
231231
}
232232
}
233233

234-
/*
235-
macro_rules! impl_from_bitcoin29_hex {
236-
($ty:ty) => {
237-
impl FromHex for $ty {
238-
fn from_byte_iter<I>(iter: I) -> Result<Self, Error>
239-
where
240-
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
241-
{
242-
use bitcoin::hashes::hex::Error as Error29;
243-
244-
let iter = iter.map(|res| res.map_err(|err| match err {
245-
Error::InvalidChar(n) => Error29::InvalidChar(n),
246-
Error::OddLengthString(n) => Error29::OddLengthString(n),
247-
Error::InvalidLength(m, n) => Error29::InvalidLength(m, n),
248-
}));
249-
bitcoin::hashes::hex::FromHex::from_byte_iter(iter).map_err(|err| match err {
250-
Error29::InvalidChar(n) => Error::InvalidChar(n),
251-
Error29::OddLengthString(n) => Error::OddLengthString(n),
252-
Error29::InvalidLength(m, n) => Error::InvalidLength(m, n),
253-
})
254-
}
255-
}
256-
}
257-
}
258-
259-
impl_from_bitcoin29_hex!(bitcoin::BlockHash);
260-
impl_from_bitcoin29_hex!(bitcoin::ScriptBuf);
261-
impl_from_bitcoin29_hex!(bitcoin::Txid);
262-
*/
263-
264234
impl FromHex for Vec<u8> {
265235
fn from_byte_iter<I>(iter: I) -> Result<Self, Error>
266236
where

0 commit comments

Comments
 (0)