aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/bn
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/src/bn')
-rw-r--r--openssl/src/bn/mod.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/openssl/src/bn/mod.rs b/openssl/src/bn/mod.rs
index 2f751037..de9d0d2a 100644
--- a/openssl/src/bn/mod.rs
+++ b/openssl/src/bn/mod.rs
@@ -1,7 +1,7 @@
use libc::{c_int, c_ulong, c_void};
use std::ffi::{CStr, CString};
use std::cmp::Ordering;
-use std::{fmt, ptr, mem};
+use std::{fmt, ptr};
use std::marker::PhantomData;
use std::ops::{Add, Div, Mul, Neg, Rem, Shl, Shr, Sub, Deref, DerefMut};
@@ -677,12 +677,6 @@ impl BigNum {
})
}
}
-
- pub fn into_raw(self) -> *mut ffi::BIGNUM {
- let ptr = self.as_ptr();
- mem::forget(self);
- ptr
- }
}
impl Drop for BigNum {