about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-03-18 09:36:18 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-03-18 16:32:32 -0700
commitfccf5a00056b1d72065951a4428070326df1cfb5 (patch)
tree481e99dcf4197b0b25cd765877c1b132f768d772 /src/libstd/sys
parent94a95067e017252d4928a4292a6aeef66902e694 (diff)
downloadrust-fccf5a00056b1d72065951a4428070326df1cfb5.tar.gz
rust-fccf5a00056b1d72065951a4428070326df1cfb5.zip
Register new snapshots
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/common/wtf8.rs12
-rw-r--r--src/libstd/sys/unix/os_str.rs2
-rw-r--r--src/libstd/sys/windows/process2.rs2
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.