reomve unused function (#3509)

This commit is contained in:
John Tromp 2020-12-11 15:26:58 +01:00 committed by GitHub
parent eaf9bcf2bf
commit acba73bf40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -187,14 +187,6 @@ impl FeeFields {
} }
} }
/// Extract bitfields fee_shift and fee into tuple
/// ignore upper 64-FEE_BITS-FEE_SHIFT_BITS bits
pub fn as_tuple(&self) -> (u64, u64) {
let fee = self.0 & FeeFields::FEE_MASK;
let fee_shift = (self.0 >> FeeFields::FEE_BITS) & FeeFields::FEE_SHIFT_MASK;
(fee, fee_shift)
}
/// Turn a zero `FeeField` into a `None`, any other value into a `Some`. /// Turn a zero `FeeField` into a `None`, any other value into a `Some`.
/// We need this because a zero `FeeField` cannot be deserialized. /// We need this because a zero `FeeField` cannot be deserialized.
pub fn as_opt(&self) -> Option<Self> { pub fn as_opt(&self) -> Option<Self> {