From 4a14f572229a844f4328590643b8b2e21b5ac7e6 Mon Sep 17 00:00:00 2001 From: Tyera Eulberg Date: Wed, 3 Jul 2024 13:10:05 -0600 Subject: [PATCH] Reduce pub --- runtime/src/bank/recent_blockhashes_account.rs | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/runtime/src/bank/recent_blockhashes_account.rs b/runtime/src/bank/recent_blockhashes_account.rs index 38b8331bb430fd..6a82cdc9755878 100644 --- a/runtime/src/bank/recent_blockhashes_account.rs +++ b/runtime/src/bank/recent_blockhashes_account.rs @@ -15,15 +15,8 @@ use { std::{collections::BinaryHeap, iter::FromIterator}, }; -#[deprecated( - since = "1.9.0", - note = "Please do not use, will no longer be available in the future" -)] #[allow(deprecated)] -pub fn update_account<'a, I>( - account: &mut AccountSharedData, - recent_blockhash_iter: I, -) -> Option<()> +fn update_account<'a, I>(account: &mut AccountSharedData, recent_blockhash_iter: I) -> Option<()> where I: IntoIterator>, { @@ -50,12 +43,8 @@ where create_account_with_data_and_fields(recent_blockhash_iter, (lamports, INITIAL_RENT_EPOCH)) } -#[deprecated( - since = "1.9.0", - note = "Please do not use, will no longer be available in the future" -)] #[allow(deprecated)] -pub fn create_account_with_data_and_fields<'a, I>( +pub(in crate::bank) fn create_account_with_data_and_fields<'a, I>( recent_blockhash_iter: I, fields: InheritableAccountFields, ) -> AccountSharedData