aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/string.rs
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2017-12-26 07:43:31 -0800
committerGitHub <[email protected]>2017-12-26 07:43:31 -0800
commitfdb8909c32ebdbdca50c6fcf610d2c4a0e017c12 (patch)
tree7af6a6aeecd9113d7b22028a13eed5df11fa3127 /openssl/src/string.rs
parentMerge pull request #797 from sfackler/fixmes (diff)
parentRemove deprecated APIs (diff)
downloadrust-openssl-fdb8909c32ebdbdca50c6fcf610d2c4a0e017c12.tar.xz
rust-openssl-fdb8909c32ebdbdca50c6fcf610d2c4a0e017c12.zip
Merge pull request #798 from sfackler/deprecation
Remove deprecated APIs
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)