remove unused arg from function (#15096)
This commit is contained in:
parent
f0d58f5549
commit
7d9f5ad525
|
@ -3657,7 +3657,7 @@ impl AccountsDB {
|
||||||
scan_func: F,
|
scan_func: F,
|
||||||
) -> Vec<B>
|
) -> Vec<B>
|
||||||
where
|
where
|
||||||
F: Fn(LoadedAccount, AppendVecId, &mut B, Slot) + Send + Sync,
|
F: Fn(LoadedAccount, &mut B, Slot) + Send + Sync,
|
||||||
B: Send + Default,
|
B: Send + Default,
|
||||||
{
|
{
|
||||||
snapshot_storages
|
snapshot_storages
|
||||||
|
@ -3669,7 +3669,6 @@ impl AccountsDB {
|
||||||
accounts.into_iter().for_each(|stored_account| {
|
accounts.into_iter().for_each(|stored_account| {
|
||||||
scan_func(
|
scan_func(
|
||||||
LoadedAccount::Stored(stored_account),
|
LoadedAccount::Stored(stored_account),
|
||||||
storage.append_vec_id(),
|
|
||||||
&mut retval,
|
&mut retval,
|
||||||
storage.slot(),
|
storage.slot(),
|
||||||
)
|
)
|
||||||
|
@ -3819,7 +3818,6 @@ impl AccountsDB {
|
||||||
Self::scan_account_storage_no_bank(
|
Self::scan_account_storage_no_bank(
|
||||||
&storage,
|
&storage,
|
||||||
|loaded_account: LoadedAccount,
|
|loaded_account: LoadedAccount,
|
||||||
_store_id: AppendVecId,
|
|
||||||
_accum: &mut Vec<(Pubkey, CalculateHashIntermediate)>,
|
_accum: &mut Vec<(Pubkey, CalculateHashIntermediate)>,
|
||||||
slot: Slot| {
|
slot: Slot| {
|
||||||
let version = loaded_account.write_version();
|
let version = loaded_account.write_version();
|
||||||
|
@ -5225,10 +5223,7 @@ pub mod tests {
|
||||||
let calls = AtomicU64::new(0);
|
let calls = AtomicU64::new(0);
|
||||||
let result = AccountsDB::scan_account_storage_no_bank(
|
let result = AccountsDB::scan_account_storage_no_bank(
|
||||||
&storages,
|
&storages,
|
||||||
|loaded_account: LoadedAccount,
|
|loaded_account: LoadedAccount, accum: &mut Vec<u64>, slot: Slot| {
|
||||||
_store_id: AppendVecId,
|
|
||||||
accum: &mut Vec<u64>,
|
|
||||||
slot: Slot| {
|
|
||||||
calls.fetch_add(1, Ordering::Relaxed);
|
calls.fetch_add(1, Ordering::Relaxed);
|
||||||
assert_eq!(loaded_account.pubkey(), &pubkey);
|
assert_eq!(loaded_account.pubkey(), &pubkey);
|
||||||
assert_eq!(slot_expected, slot);
|
assert_eq!(slot_expected, slot);
|
||||||
|
|
Loading…
Reference in New Issue