remove old code (#15988)
This commit is contained in:
parent
4beb39f7a1
commit
9760fded2d
|
@ -478,20 +478,6 @@ pub fn to_account<S: Sysvar, T: WritableAccount>(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<AccountInfo> {
|
||||
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)],
|
||||
|
|
Loading…
Reference in New Issue