Remove deprecated string functions

This commit is contained in:
Joonas Javanainen 2017-10-25 21:50:51 +03:00
parent 0061a209b6
commit 8a27431133
No known key found for this signature in database
GPG Key ID: D39CCA5CB19B9179
2 changed files with 6 additions and 12 deletions

View File

@ -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

View File

@ -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<u8>) -> ImString {
ImString::from_utf8_unchecked(v)
}
pub unsafe fn from_utf8_unchecked(mut v: Vec<u8>) -> 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)
}