From 0705a07b52af10f789e271618d9dbb51a5dc0aec Mon Sep 17 00:00:00 2001 From: Andrew Fitzgerald Date: Tue, 12 Mar 2024 11:48:05 -0500 Subject: [PATCH] Remove unused account_deps (#188) --- svm/src/account_loader.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/svm/src/account_loader.rs b/svm/src/account_loader.rs index bf9b5b9c4..ee06dd5fb 100644 --- a/svm/src/account_loader.rs +++ b/svm/src/account_loader.rs @@ -196,7 +196,6 @@ fn load_transaction_accounts( 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( 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()