From 84b13286f0046df773ace64902301ec805d55b6a Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Wed, 21 Feb 2024 14:01:26 +0100 Subject: [PATCH] chore: rm unused var (#6713) --- crates/transaction-pool/src/pool/mod.rs | 1 - crates/transaction-pool/src/validate/mod.rs | 6 ------ 2 files changed, 7 deletions(-) diff --git a/crates/transaction-pool/src/pool/mod.rs b/crates/transaction-pool/src/pool/mod.rs index 62b9d2cec..db45037ef 100644 --- a/crates/transaction-pool/src/pool/mod.rs +++ b/crates/transaction-pool/src/pool/mod.rs @@ -400,7 +400,6 @@ where } => { let sender_id = self.get_sender_id(transaction.sender()); let transaction_id = TransactionId::new(sender_id, transaction.nonce()); - let _encoded_length = transaction.encoded_length(); // split the valid transaction and the blob sidecar if it has any let (transaction, maybe_sidecar) = match transaction { diff --git a/crates/transaction-pool/src/validate/mod.rs b/crates/transaction-pool/src/validate/mod.rs index 30dba9598..f2966745e 100644 --- a/crates/transaction-pool/src/validate/mod.rs +++ b/crates/transaction-pool/src/validate/mod.rs @@ -134,12 +134,6 @@ impl ValidTransaction { self.transaction().hash() } - /// Returns the length of the rlp encoded object - #[inline] - pub(crate) fn encoded_length(&self) -> usize { - self.transaction().encoded_length() - } - /// Returns the nonce of the transaction. #[inline] pub(crate) fn nonce(&self) -> u64 {