From 06a54e142354ee726fa12792b047654b62ddc44a Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 30 Mar 2021 00:50:27 +0000 Subject: [PATCH] remove old code (#15988) (#15993) (cherry picked from commit 9760fded2dc25bcdb92d053cd19677614303cbb2) Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com> --- sdk/src/account.rs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/sdk/src/account.rs b/sdk/src/account.rs index b986f68c77..b6665d9cf9 100644 --- a/sdk/src/account.rs +++ b/sdk/src/account.rs @@ -507,20 +507,6 @@ pub fn to_account(sysvar: &S, account: &mut T) -> bincode::serialize_into(account.data_as_mut_slice(), sysvar).ok() } -/// Return the information required to construct an `AccountInfo`. Used by the -/// `AccountInfo` conversion implementations. -impl solana_program::account_info::Account for AccountSharedData { - fn get(&mut self) -> (&mut u64, &mut [u8], &Pubkey, bool, Epoch) { - ( - &mut self.lamports, - &mut self.data, - &self.owner, - self.executable, - self.rent_epoch, - ) - } -} - /// Return the information required to construct an `AccountInfo`. Used by the /// `AccountInfo` conversion implementations. impl solana_program::account_info::Account for Account { @@ -535,11 +521,6 @@ impl solana_program::account_info::Account for Account { } } -/// Create `AccountInfo`s -pub fn create_account_infos(accounts: &mut [(Pubkey, AccountSharedData)]) -> Vec { - accounts.iter_mut().map(Into::into).collect() -} - /// Create `AccountInfo`s pub fn create_is_signer_account_infos<'a>( accounts: &'a mut [(&'a Pubkey, bool, &'a mut Account)],