diff options
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/common/wtf8.rs | 12 | ||||
| -rw-r--r-- | src/libstd/sys/unix/os_str.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sys/windows/process2.rs | 2 |
3 files changed, 0 insertions, 16 deletions
diff --git a/src/libstd/sys/common/wtf8.rs b/src/libstd/sys/common/wtf8.rs index dfc88571a82..3cc91bf54b4 100644 --- a/src/libstd/sys/common/wtf8.rs +++ b/src/libstd/sys/common/wtf8.rs @@ -172,18 +172,6 @@ impl Wtf8Buf { Wtf8Buf { bytes: string.into_bytes() } } - #[cfg(stage0)] - /// Create a WTF-8 string from an UTF-8 `&str` slice. - /// - /// This copies the content of the slice. - /// - /// Since WTF-8 is a superset of UTF-8, this always succeeds. - #[inline] - pub fn from_str(str: &str) -> Wtf8Buf { - Wtf8Buf { bytes: slice::SliceExt::to_vec(str.as_bytes()) } - } - - #[cfg(not(stage0))] /// Create a WTF-8 string from an UTF-8 `&str` slice. /// /// This copies the content of the slice. diff --git a/src/libstd/sys/unix/os_str.rs b/src/libstd/sys/unix/os_str.rs index 99591480752..3b8d18d87a0 100644 --- a/src/libstd/sys/unix/os_str.rs +++ b/src/libstd/sys/unix/os_str.rs @@ -16,8 +16,6 @@ use core::prelude::*; use borrow::Cow; use fmt::{self, Debug}; use vec::Vec; -#[cfg(stage0)] -use slice::SliceExt as StdSliceExt; use str; use string::String; use mem; diff --git a/src/libstd/sys/windows/process2.rs b/src/libstd/sys/windows/process2.rs index e3cf5da59f0..4c2777459dd 100644 --- a/src/libstd/sys/windows/process2.rs +++ b/src/libstd/sys/windows/process2.rs @@ -128,8 +128,6 @@ impl Process { use env::split_paths; use mem; use iter::IteratorExt; - #[cfg(stage0)] - use str::StrExt; // To have the spawning semantics of unix/windows stay the same, we need to // read the *child's* PATH if one is provided. See #15149 for more details. |
