diff --git a/swap/src/bitcoin/timelocks.rs b/swap/src/bitcoin/timelocks.rs index ab365df8..04f589a9 100644 --- a/swap/src/bitcoin/timelocks.rs +++ b/swap/src/bitcoin/timelocks.rs @@ -17,18 +17,6 @@ impl From for u32 { } } -impl BlockHeight { - pub const fn new(block_height: u32) -> Self { - Self(block_height) - } - pub const fn checked_sub(self, rhs: Self) -> Option { - match self.0.checked_sub(rhs.0) { - Some(result) => Some(BlockHeight(result)), - None => None, - } - } -} - impl TryFrom for BlockHeight { type Error = anyhow::Error;