mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-20 19:11:08 +03:00
reomve unused function (#3509)
This commit is contained in:
parent
eaf9bcf2bf
commit
acba73bf40
1 changed files with 0 additions and 8 deletions
|
@ -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`.
|
||||
/// We need this because a zero `FeeField` cannot be deserialized.
|
||||
pub fn as_opt(&self) -> Option<Self> {
|
||||
|
|
Loading…
Reference in a new issue