Delete unused code

This commit is contained in:
Thomas Eizinger 2021-05-25 15:31:11 +10:00
parent 014388bfaa
commit e79ac4563b
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96

View File

@ -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 {
type Error = anyhow::Error;