From 0f939c1b08d86967cb7742e57d6f67ecad4e7eb4 Mon Sep 17 00:00:00 2001 From: Brooks Date: Mon, 22 Apr 2024 16:48:17 -0400 Subject: [PATCH] Removes deprecated MINIMUM_STAKE_DELEGATION (#963) --- programs/stake/src/lib.rs | 3 +-- sdk/program/src/stake/deprecated.rs | 5 ----- sdk/program/src/stake/mod.rs | 3 --- 3 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 sdk/program/src/stake/deprecated.rs diff --git a/programs/stake/src/lib.rs b/programs/stake/src/lib.rs index 5f0f6c5f1342f6..1818815202a4fe 100644 --- a/programs/stake/src/lib.rs +++ b/programs/stake/src/lib.rs @@ -31,7 +31,6 @@ pub fn get_minimum_delegation(feature_set: &FeatureSet) -> u64 { const MINIMUM_DELEGATION_SOL: u64 = 1; MINIMUM_DELEGATION_SOL * LAMPORTS_PER_SOL } else { - #[allow(deprecated)] - solana_sdk::stake::MINIMUM_STAKE_DELEGATION + 1 } } diff --git a/sdk/program/src/stake/deprecated.rs b/sdk/program/src/stake/deprecated.rs deleted file mode 100644 index c50dba9a35eee2..00000000000000 --- a/sdk/program/src/stake/deprecated.rs +++ /dev/null @@ -1,5 +0,0 @@ -#[deprecated( - since = "1.11.0", - note = "please use `solana_program::stake::tools::get_minimum_delegation()` instead" -)] -pub const MINIMUM_STAKE_DELEGATION: u64 = 1; diff --git a/sdk/program/src/stake/mod.rs b/sdk/program/src/stake/mod.rs index 1227a50c2c6474..31f13d4559a407 100644 --- a/sdk/program/src/stake/mod.rs +++ b/sdk/program/src/stake/mod.rs @@ -9,9 +9,6 @@ pub mod stake_flags; pub mod state; pub mod tools; -mod deprecated; -pub use deprecated::*; - pub mod program { crate::declare_id!("Stake11111111111111111111111111111111111111"); }