mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-05-21 16:10:48 -04:00
Delete unused code
This commit is contained in:
parent
014388bfaa
commit
e79ac4563b
1 changed files with 0 additions and 12 deletions
|
@ -17,18 +17,6 @@ impl From<BlockHeight> for u32 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl BlockHeight {
|
|
||||||
pub const fn new(block_height: u32) -> Self {
|
|
||||||
Self(block_height)
|
|
||||||
}
|
|
||||||
pub const fn checked_sub(self, rhs: Self) -> Option<Self> {
|
|
||||||
match self.0.checked_sub(rhs.0) {
|
|
||||||
Some(result) => Some(BlockHeight(result)),
|
|
||||||
None => None,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl TryFrom<HeaderNotification> for BlockHeight {
|
impl TryFrom<HeaderNotification> for BlockHeight {
|
||||||
type Error = anyhow::Error;
|
type Error = anyhow::Error;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue