From 48dd77e47bddd49363f0357864b4f5512a6c62bc Mon Sep 17 00:00:00 2001 From: Elichai Turkel Date: Thu, 27 Aug 2020 22:52:16 +0300 Subject: [PATCH] Remove old deprecated blank functions --- secp256k1-sys/src/lib.rs | 6 ------ secp256k1-sys/src/recovery.rs | 3 --- 2 files changed, 9 deletions(-) diff --git a/secp256k1-sys/src/lib.rs b/secp256k1-sys/src/lib.rs index e1f72bb..44cb10f 100644 --- a/secp256k1-sys/src/lib.rs +++ b/secp256k1-sys/src/lib.rs @@ -94,9 +94,6 @@ impl_raw_debug!(PublicKey); impl PublicKey { /// Create a new (zeroed) public key usable for the FFI interface pub fn new() -> PublicKey { PublicKey([0; 64]) } - /// Create a new (uninitialized) public key usable for the FFI interface - #[deprecated(since = "0.15.3", note = "Please use the new function instead")] - pub unsafe fn blank() -> PublicKey { PublicKey::new() } } impl Default for PublicKey { @@ -120,9 +117,6 @@ impl_raw_debug!(Signature); impl Signature { /// Create a new (zeroed) signature usable for the FFI interface pub fn new() -> Signature { Signature([0; 64]) } - /// Create a new (uninitialized) signature usable for the FFI interface - #[deprecated(since = "0.15.3", note = "Please use the new function instead")] - pub unsafe fn blank() -> Signature { Signature::new() } } impl Default for Signature { diff --git a/secp256k1-sys/src/recovery.rs b/secp256k1-sys/src/recovery.rs index 62d314b..5423cde 100644 --- a/secp256k1-sys/src/recovery.rs +++ b/secp256k1-sys/src/recovery.rs @@ -28,9 +28,6 @@ impl_raw_debug!(RecoverableSignature); impl RecoverableSignature { /// Create a new (zeroed) signature usable for the FFI interface pub fn new() -> RecoverableSignature { RecoverableSignature([0; 65]) } - /// Create a new (uninitialized) signature usable for the FFI interface - #[deprecated(since = "0.15.3", note = "Please use the new function instead")] - pub unsafe fn blank() -> RecoverableSignature { RecoverableSignature::new() } } impl Default for RecoverableSignature {