Skip to content

Commit

Permalink
Remove unnecessary new_intern
Browse files Browse the repository at this point in the history
  • Loading branch information
dodomorandi committed Dec 5, 2020
1 parent 243d9f9 commit 411ad0f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions openssl/src/encrypt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ impl<'a> Encrypter<'a> {
///
/// [`EVP_PKEY_encrypt_init`]: https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_encrypt_init.html
pub fn new<T>(pkey: &'a PKeyRef<T>) -> Result<Encrypter<'a>, ErrorStack>
where
T: HasPublic,
{
Self::new_intern(pkey)
}

fn new_intern<T>(pkey: &'a PKeyRef<T>) -> Result<Encrypter<'a>, ErrorStack>
where
T: HasPublic,
{
Expand Down Expand Up @@ -164,13 +157,6 @@ impl<'a> Decrypter<'a> {
///
/// [`EVP_PKEY_decrypt_init`]: https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_decrypt_init.html
pub fn new<T>(pkey: &'a PKeyRef<T>) -> Result<Decrypter<'a>, ErrorStack>
where
T: HasPrivate,
{
Self::new_intern(pkey)
}

fn new_intern<T>(pkey: &'a PKeyRef<T>) -> Result<Decrypter<'a>, ErrorStack>
where
T: HasPrivate,
{
Expand Down

0 comments on commit 411ad0f

Please sign in to comment.