Commit 411ad0f0 authored by Edoardo Morandi's avatar Edoardo Morandi
Browse files

Remove unnecessary new_intern

parent 243d9f94
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -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,
    {
@@ -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,
    {