From acba73bf40242f963d8ea1e7128dfdfde6fb8853 Mon Sep 17 00:00:00 2001 From: John Tromp Date: Fri, 11 Dec 2020 15:26:58 +0100 Subject: [PATCH] reomve unused function (#3509) --- core/src/core/transaction.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/core/src/core/transaction.rs b/core/src/core/transaction.rs index e7a3a43fa..d963e1854 100644 --- a/core/src/core/transaction.rs +++ b/core/src/core/transaction.rs @@ -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 {