Skip to content

Commit

Permalink
grin v5.3 (0027) remove unused function (mimblewimble#3509)
Browse files Browse the repository at this point in the history
  • Loading branch information
bayk committed Jun 10, 2024
1 parent edb6aa4 commit aa43610
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions core/src/core/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,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> {
Expand Down

0 comments on commit aa43610

Please sign in to comment.