diff options
| author | Brian Anderson <banderson@mozilla.com> | 2016-09-22 00:57:18 +0000 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2016-10-01 19:33:02 +0000 |
| commit | 0fb8379ed86f15943e87721f73165138598d19cc (patch) | |
| tree | d9100254466e8331a8de31595741236ec0c48c59 | |
| parent | d311079a6f70577d02f35bb80d27eef7e2b18a4a (diff) | |
| download | rust-0fb8379ed86f15943e87721f73165138598d19cc.tar.gz rust-0fb8379ed86f15943e87721f73165138598d19cc.zip | |
std: Remove plattform-specific code from os_str
| -rw-r--r-- | src/libstd/ffi/os_str.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/libstd/ffi/os_str.rs b/src/libstd/ffi/os_str.rs index d93d3c73622..84b50f04463 100644 --- a/src/libstd/ffi/os_str.rs +++ b/src/libstd/ffi/os_str.rs @@ -53,17 +53,6 @@ impl OsString { OsString { inner: Buf::from_string(String::new()) } } - #[cfg(unix)] - fn _from_bytes(vec: Vec<u8>) -> Option<OsString> { - use os::unix::ffi::OsStringExt; - Some(OsString::from_vec(vec)) - } - - #[cfg(windows)] - fn _from_bytes(vec: Vec<u8>) -> Option<OsString> { - String::from_utf8(vec).ok().map(OsString::from) - } - /// Converts to an `OsStr` slice. #[stable(feature = "rust1", since = "1.0.0")] pub fn as_os_str(&self) -> &OsStr { |
