From 722921380bd041fc1f8691e0675de74e0475ddad Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Thu, 11 May 2023 11:16:27 -0500 Subject: [PATCH] remove unused IndexAccountMapEntry.write_version (#31599) --- runtime/src/accounts_db.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index 764e8b3bbb..409808b3f6 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -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, },