diff --git a/sdk/src/account.rs b/sdk/src/account.rs index 17f3b1a95a..453d83ec13 100644 --- a/sdk/src/account.rs +++ b/sdk/src/account.rs @@ -478,20 +478,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 { @@ -506,11 +492,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)],