Skip to content

Commit c42691c

Browse files
committed
Delete deprecated _global functions
At first we deprecated these but since we have a global context that works with and without `std` and we deleted the `global-context` feature we might as well just clobber these 2 functions now also.
1 parent 2f19aa7 commit c42691c

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/key/mod.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,6 @@ impl PublicKey {
115115
#[inline]
116116
pub fn from_ellswift(ellswift: ElligatorSwift) -> PublicKey { ElligatorSwift::decode(ellswift) }
117117

118-
/// Creates a new public key from a [`SecretKey`].
119-
#[inline]
120-
#[deprecated(since = "TBD", note = "use from_secret_key instead")]
121-
pub fn from_secret_key_global(sk: &SecretKey) -> PublicKey { PublicKey::from_secret_key(sk) }
122-
123118
/// Creates a public key directly from a slice.
124119
#[inline]
125120
pub fn from_slice(data: &[u8]) -> Result<PublicKey, Error> {
@@ -551,16 +546,6 @@ impl Keypair {
551546
#[deprecated(note = "use FromStr or parse instead")]
552547
pub fn from_seckey_str(s: &str) -> Result<Self, Error> { s.parse() }
553548

554-
/// Creates a [`Keypair`] directly from a secret key string.
555-
///
556-
/// # Errors
557-
///
558-
/// [`Error::InvalidSecretKey`] if the string does not consist of exactly 64 hex characters,
559-
/// or if the encoded number is an invalid scalar.
560-
#[inline]
561-
#[deprecated(note = "use FromStr or parse instead")]
562-
pub fn from_seckey_str_global(s: &str) -> Result<Keypair, Error> { s.parse() }
563-
564549
/// Generates a new random key pair.
565550
/// # Examples
566551
///

0 commit comments

Comments
 (0)