removed unused accounts hash code (#32791)
This commit is contained in:
parent
c73a56faf8
commit
4e6fb8e343
|
@ -2336,8 +2336,6 @@ trait AppendVecScan: Send + Sync + Clone {
|
||||||
fn scanning_complete(self) -> BinnedHashData;
|
fn scanning_complete(self) -> BinnedHashData;
|
||||||
/// initialize accumulator
|
/// initialize accumulator
|
||||||
fn init_accum(&mut self, count: usize);
|
fn init_accum(&mut self, count: usize);
|
||||||
fn get_accum(&mut self) -> BinnedHashData;
|
|
||||||
fn set_accum(&mut self, accum: BinnedHashData);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
|
@ -2411,12 +2409,6 @@ impl<'a> AppendVecScan for ScanState<'a> {
|
||||||
self.sort_time.fetch_add(timing, Ordering::Relaxed);
|
self.sort_time.fetch_add(timing, Ordering::Relaxed);
|
||||||
result
|
result
|
||||||
}
|
}
|
||||||
fn get_accum(&mut self) -> BinnedHashData {
|
|
||||||
std::mem::take(&mut self.accum)
|
|
||||||
}
|
|
||||||
fn set_accum(&mut self, accum: BinnedHashData) {
|
|
||||||
self.accum = accum;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl AccountsDb {
|
impl AccountsDb {
|
||||||
|
@ -10890,12 +10882,6 @@ pub mod tests {
|
||||||
self.current_slot = slot;
|
self.current_slot = slot;
|
||||||
}
|
}
|
||||||
fn init_accum(&mut self, _count: usize) {}
|
fn init_accum(&mut self, _count: usize) {}
|
||||||
fn get_accum(&mut self) -> BinnedHashData {
|
|
||||||
std::mem::take(&mut self.accum)
|
|
||||||
}
|
|
||||||
fn set_accum(&mut self, accum: BinnedHashData) {
|
|
||||||
self.accum = accum;
|
|
||||||
}
|
|
||||||
fn found_account(&mut self, loaded_account: &LoadedAccount) {
|
fn found_account(&mut self, loaded_account: &LoadedAccount) {
|
||||||
self.calls.fetch_add(1, Ordering::Relaxed);
|
self.calls.fetch_add(1, Ordering::Relaxed);
|
||||||
assert_eq!(loaded_account.pubkey(), &self.pubkey);
|
assert_eq!(loaded_account.pubkey(), &self.pubkey);
|
||||||
|
@ -11194,12 +11180,6 @@ pub mod tests {
|
||||||
fn scanning_complete(self) -> BinnedHashData {
|
fn scanning_complete(self) -> BinnedHashData {
|
||||||
self.accum
|
self.accum
|
||||||
}
|
}
|
||||||
fn get_accum(&mut self) -> BinnedHashData {
|
|
||||||
std::mem::take(&mut self.accum)
|
|
||||||
}
|
|
||||||
fn set_accum(&mut self, accum: BinnedHashData) {
|
|
||||||
self.accum = accum;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in New Issue