Skip to content

Commit

Permalink
remove unused IndexAccountMapEntry.write_version (solana-labs#31599)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington authored May 11, 2023
1 parent c22b87e commit 7229213
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions runtime/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
}
Expand Down Expand Up @@ -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,
},
Expand Down Expand Up @@ -8794,7 +8791,6 @@ impl AccountsDb {
|(
pubkey,
IndexAccountMapEntry {
write_version: _write_version,
store_id,
stored_account,
},
Expand Down

0 comments on commit 7229213

Please sign in to comment.