diff --git a/CHANGELOG.markdown b/CHANGELOG.markdown index 99546f4..4eac82d 100644 --- a/CHANGELOG.markdown +++ b/CHANGELOG.markdown @@ -23,6 +23,12 @@ - Glium renderer now uses MinifySamplerFilter::Nearest. This fixes a blurry font issue in some configurations +### Removed + +- `ImString::from_string_unchecked` +- `ImString::from_bytes_unchecked` +- `ImStr::from_bytes_unchecked` + ## [0.0.15] - 2017-07-23 ### Added diff --git a/src/string.rs b/src/string.rs index 2b5604f..fc9f28a 100644 --- a/src/string.rs +++ b/src/string.rs @@ -18,14 +18,6 @@ impl ImString { v.push(b'\0'); ImString(v) } - #[deprecated(since = "0.0.15", note = "please use ImString::new instead")] - pub unsafe fn from_string_unchecked(s: String) -> ImString { - ImString::new(s) - } - #[deprecated(since = "0.0.15", note = "please use ImString::from_utf8_unchecked instead")] - pub unsafe fn from_vec_unchecked(v: Vec) -> ImString { - ImString::from_utf8_unchecked(v) - } pub unsafe fn from_utf8_unchecked(mut v: Vec) -> ImString { v.push(b'\0'); ImString(v) @@ -115,10 +107,6 @@ impl fmt::Debug for ImStr { } impl ImStr { - #[deprecated(since = "0.0.15", note = "please use ImStr::from_bytes_with_nul_unchecked instead")] - pub unsafe fn from_bytes_unchecked(bytes: &[u8]) -> &ImStr { - ImStr::from_utf8_with_nul_unchecked(bytes) - } pub unsafe fn from_utf8_with_nul_unchecked(bytes: &[u8]) -> &ImStr { mem::transmute(bytes) }