From e79ac4563bd87ea2d95d624f7b678d97f070f897 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 25 May 2021 15:31:11 +1000 Subject: [PATCH] Delete unused code --- swap/src/bitcoin/timelocks.rs | 12 ------------ 1 file changed, 12 deletions(-) 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;