Remove unused account_deps (#188)

This commit is contained in:
Andrew Fitzgerald 2024-03-12 11:48:05 -05:00 committed by GitHub
parent 5f66165186
commit 0705a07b52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 8 deletions

View File

@ -196,7 +196,6 @@ fn load_transaction_accounts<CB: TransactionProcessingCallback>(
let mut tx_rent: TransactionRent = 0;
let account_keys = message.account_keys();
let mut accounts_found = Vec::with_capacity(account_keys.len());
let mut account_deps = Vec::with_capacity(account_keys.len());
let mut rent_debits = RentDebits::default();
let rent_collector = callbacks.get_rent_collector();
@ -316,13 +315,6 @@ fn load_transaction_accounts<CB: TransactionProcessingCallback>(
return Err(TransactionError::AccountNotFound);
}
// Appends the account_deps at the end of the accounts,
// this way they can be accessed in a uniform way.
// At places where only the accounts are needed,
// the account_deps are truncated using e.g:
// accounts.iter().take(message.account_keys.len())
accounts.append(&mut account_deps);
let builtins_start_index = accounts.len();
let program_indices = message
.instructions()