From 2adf2cf12bf1afb806ec8bfb222d32831137d749 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Mon, 25 Dec 2017 22:02:41 -0700 Subject: Remove deprecated APIs --- openssl/src/string.rs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'openssl/src/string.rs') 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) -- cgit v1.2.3