Skip to content

Commit b1a4c81

Browse files
chore: remove unused TrieRAM::compress field and associated code path, #6654
1 parent 01fd07e commit b1a4c81

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

stackslib/src/chainstate/stacks/index/storage.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,6 @@ pub struct TrieRAM<T: MarfTrieId> {
400400
is_moved: bool,
401401

402402
parent: T,
403-
404-
/// whether or not to compress the trie on dump
405-
compress: bool,
406403
}
407404

408405
pub enum DumpPtr {
@@ -469,16 +466,9 @@ impl<T: MarfTrieId> TrieRAM<T> {
469466
is_moved: false,
470467

471468
parent: parent.clone(),
472-
compress: false,
473469
}
474470
}
475471

476-
/// Iterative constructor to set compression
477-
pub fn with_compression(mut self, compression: bool) -> Self {
478-
self.compress = compression;
479-
self
480-
}
481-
482472
/// Inner method to instantiate a TrieRAM from existing Trie data.
483473
fn from_data(block_header: T, data: Vec<(TrieNodeType, TrieHash)>, parent: T) -> TrieRAM<T> {
484474
TrieRAM {
@@ -500,7 +490,6 @@ impl<T: MarfTrieId> TrieRAM<T> {
500490
is_moved: false,
501491

502492
parent,
503-
compress: false,
504493
}
505494
}
506495

@@ -533,7 +522,6 @@ impl<T: MarfTrieId> TrieRAM<T> {
533522
is_moved: true,
534523

535524
parent: self.parent.clone(),
536-
compress: self.compress,
537525
}
538526
}
539527

0 commit comments

Comments
 (0)