summary refs log tree commit diff
path: root/src/libcollections/string.rs
diff options
context:
space:
mode:
authorAaron Turon <aturon@mozilla.com>2014-10-02 11:47:38 -0700
committerAaron Turon <aturon@mozilla.com>2014-10-02 11:47:38 -0700
commit2f365ffdad40475e8f70f7af7f210d6c597b60f5 (patch)
tree51154f8a256deb911f52558b4355fcb68bf2ea4e /src/libcollections/string.rs
parentb2d4eb186e99b66051be9089f836c66a558dd995 (diff)
downloadrust-2f365ffdad40475e8f70f7af7f210d6c597b60f5.tar.gz
rust-2f365ffdad40475e8f70f7af7f210d6c597b60f5.zip
Revert "Review and rebasing changes"
This reverts commit 6e0611a48707a1f5d90aee32a02b2b15957ef25b.
Diffstat (limited to 'src/libcollections/string.rs')
-rw-r--r--src/libcollections/string.rs29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs
index 1032a504330..206e392f664 100644
--- a/src/libcollections/string.rs
+++ b/src/libcollections/string.rs
@@ -927,7 +927,6 @@ impl<S: Str> Add<S, String> for String {
     }
 }
 
-#[cfg(stage0)]
 impl ops::Slice<uint, str> for String {
     #[inline]
     fn as_slice_<'a>(&'a self) -> &'a str {
@@ -950,34 +949,6 @@ impl ops::Slice<uint, str> for String {
     }
 }
 
-#[cfg(not(stage0))]
-#[inline]
-fn str_to_slice<'a, U: Str>(this: &'a U) -> &'a str {
-    this.as_slice()
-}
-#[cfg(not(stage0))]
-impl ops::Slice<uint, str> for String {
-    #[inline]
-    fn as_slice<'a>(&'a self) -> &'a str {
-        str_to_slice(self)
-    }
-
-    #[inline]
-    fn slice_from<'a>(&'a self, from: &uint) -> &'a str {
-        self[][*from..]
-    }
-
-    #[inline]
-    fn slice_to<'a>(&'a self, to: &uint) -> &'a str {
-        self[][..*to]
-    }
-
-    #[inline]
-    fn slice<'a>(&'a self, from: &uint, to: &uint) -> &'a str {
-        self[][*from..*to]
-    }
-}
-
 /// Unsafe operations
 #[unstable = "waiting on raw module conventions"]
 pub mod raw {