aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/string.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/src/string.rs')
-rw-r--r--openssl/src/string.rs14
1 files changed, 1 insertions, 13 deletions
diff --git a/openssl/src/string.rs b/openssl/src/string.rs
index af58130e..49d6d6f9 100644
--- a/openssl/src/string.rs
+++ b/openssl/src/string.rs
@@ -1,5 +1,5 @@
use ffi;
-use foreign_types::{ForeignType, ForeignTypeRef};
+use foreign_types::ForeignTypeRef;
use libc::{c_char, c_void};
use std::fmt;
use std::ffi::CStr;
@@ -16,18 +16,6 @@ foreign_type_and_impl_send_sync! {
pub struct OpensslStringRef;
}
-impl OpensslString {
- #[deprecated(note = "use from_ptr", since = "0.9.7")]
- pub unsafe fn from_raw_parts(buf: *mut u8, _: usize) -> OpensslString {
- OpensslString::from_ptr(buf as *mut c_char)
- }
-
- #[deprecated(note = "use from_ptr", since = "0.9.7")]
- pub unsafe fn from_null_terminated(buf: *mut c_char) -> OpensslString {
- OpensslString::from_ptr(buf)
- }
-}
-
impl fmt::Display for OpensslString {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
fmt::Display::fmt(&**self, f)