From 008bdabda9e2a2463fdead358029f96944d53979 Mon Sep 17 00:00:00 2001 From: Andrei Silviu Dragnea Date: Tue, 7 May 2024 15:00:58 -0600 Subject: [PATCH] Temporarily disable deprecations --- zk-token-sdk/src/instruction/transfer/mod.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/zk-token-sdk/src/instruction/transfer/mod.rs b/zk-token-sdk/src/instruction/transfer/mod.rs index 80d4b1861d173e..1fa5cef82deeb5 100644 --- a/zk-token-sdk/src/instruction/transfer/mod.rs +++ b/zk-token-sdk/src/instruction/transfer/mod.rs @@ -36,7 +36,6 @@ pub enum Role { /// Takes in a 64-bit number `amount` and a bit length `bit_length`. It returns: /// - the `bit_length` low bits of `amount` interpreted as u64 /// - the (64 - `bit_length`) high bits of `amount` interpreted as u64 -#[deprecated(since = "1.18.0", note = "please use `try_split_u64` instead")] #[cfg(not(target_os = "solana"))] pub fn split_u64(amount: u64, bit_length: usize) -> (u64, u64) { if bit_length == 64 { @@ -71,7 +70,6 @@ pub fn try_split_u64(amount: u64, bit_length: usize) -> Result<(u64, u64), Instr } } -#[deprecated(since = "1.18.0", note = "please use `try_combine_lo_hi_u64` instead")] #[cfg(not(target_os = "solana"))] pub fn combine_lo_hi_u64(amount_lo: u64, amount_hi: u64, bit_length: usize) -> u64 { if bit_length == 64 { @@ -118,10 +116,6 @@ fn try_combine_lo_hi_ciphertexts( Ok(ciphertext_lo + &(ciphertext_hi * &Scalar::from(two_power))) } -#[deprecated( - since = "1.18.0", - note = "please use `try_combine_lo_hi_commitments` instead" -)] #[cfg(not(target_os = "solana"))] pub fn combine_lo_hi_commitments( comm_lo: &PedersenCommitment, @@ -146,10 +140,6 @@ pub fn try_combine_lo_hi_commitments( Ok(comm_lo + comm_hi * &Scalar::from(two_power)) } -#[deprecated( - since = "1.18.0", - note = "please use `try_combine_lo_hi_openings` instead" -)] #[cfg(not(target_os = "solana"))] pub fn combine_lo_hi_openings( opening_lo: &PedersenOpening,