about summary refs log tree commit diff
path: root/src/libcore/str.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore/str.rs')
-rw-r--r--src/libcore/str.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/libcore/str.rs b/src/libcore/str.rs
index 1fff066c025..12258f5eb27 100644
--- a/src/libcore/str.rs
+++ b/src/libcore/str.rs
@@ -124,19 +124,6 @@ fn from_bytes(vv: [u8]) -> str unsafe {
 }
 
 #[doc = "
-Convert a unique vector of bytes (passed by move)
-   to a unique boxed UTF-8 string
-
-# Failure
-
-Fails if invalid UTF-8
-"]
-fn from_bytes_move(-vv: ~mut [const u8]) -> ~str unsafe {
-   assert is_utf8(::unsafe::reinterpret_cast(vv));
-   ret unsafe::from_bytes_move(vv);
-}
-
-#[doc = "
 Convert a byte to a UTF-8 string
 
 # Failure
@@ -1644,7 +1631,6 @@ mod unsafe {
       from_buf,
       from_c_str,
       from_bytes,
-      from_bytes_move,
       slice_bytes,
       push_byte,
       pop_byte,
@@ -1699,13 +1685,6 @@ mod unsafe {
        ret scopy;
    }
 
-   unsafe fn from_bytes_move(-v: ~mut [const u8]) -> ~str unsafe {
-     *v += [0u8];
-     let s: ~str = ::unsafe::reinterpret_cast(v);
-     ::unsafe::forget(v);
-     s
-   }
-
    #[doc = "
    Converts a byte to a string.