remove unused IndexAccountMapEntry.write_version (#31599)

This commit is contained in:
Jeff Washington (jwash) 2023-05-11 11:16:27 -05:00 committed by GitHub
parent c22b87e49a
commit 722921380b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -2266,7 +2266,6 @@ impl<'a> ZeroLamport for StoredAccountMeta<'a> {
}
struct IndexAccountMapEntry<'a> {
pub write_version: StoredMetaWriteVersion,
pub store_id: AppendVecId,
pub stored_account: StoredAccountMeta<'a>,
}
@ -8740,13 +8739,11 @@ impl AccountsDb {
let num_accounts = storage.approx_stored_count();
let mut accounts_map = GenerateIndexAccountsMap::with_capacity(num_accounts);
storage.accounts.account_iter().for_each(|stored_account| {
let this_version = stored_account.write_version();
let pubkey = stored_account.pubkey();
assert!(!self.is_filler_account(pubkey));
accounts_map.insert(
*pubkey,
IndexAccountMapEntry {
write_version: this_version,
store_id: storage.append_vec_id(),
stored_account,
},
@ -8794,7 +8791,6 @@ impl AccountsDb {
|(
pubkey,
IndexAccountMapEntry {
write_version: _write_version,
store_id,
stored_account,
},