We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d311079 commit 0fb8379Copy full SHA for 0fb8379
src/libstd/ffi/os_str.rs
@@ -53,17 +53,6 @@ impl OsString {
53
OsString { inner: Buf::from_string(String::new()) }
54
}
55
56
- #[cfg(unix)]
57
- fn _from_bytes(vec: Vec<u8>) -> Option<OsString> {
58
- use os::unix::ffi::OsStringExt;
59
- Some(OsString::from_vec(vec))
60
- }
61
-
62
- #[cfg(windows)]
63
64
- String::from_utf8(vec).ok().map(OsString::from)
65
66
67
/// Converts to an `OsStr` slice.
68
#[stable(feature = "rust1", since = "1.0.0")]
69
pub fn as_os_str(&self) -> &OsStr {
0 commit comments