diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-08-11 17:03:23 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-08-12 12:08:27 -0700 |
| commit | 6050e1d4f6c2fdd412eabbdff864d942bce6e8d7 (patch) | |
| tree | 5cc118fd7bde1ae98c2edf85c0952eeee8a06837 | |
| parent | a9ce342fa384b3c1f86e9b3a80ec7b30a87d2e65 (diff) | |
| download | rust-6050e1d4f6c2fdd412eabbdff864d942bce6e8d7.tar.gz rust-6050e1d4f6c2fdd412eabbdff864d942bce6e8d7.zip | |
Remove std::str::unsafe_from_bytes
| -rw-r--r-- | src/lib/str.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/lib/str.rs b/src/lib/str.rs index 40d49bc690e..d1f31f3d820 100644 --- a/src/lib/str.rs +++ b/src/lib/str.rs @@ -14,7 +14,6 @@ export byte_len; export buf; export bytes; export from_bytes; -export unsafe_from_bytes; export unsafe_from_byte; export str_from_cstr; export str_from_buf; @@ -193,11 +192,6 @@ fn bytes(s: str) -> [u8] { ret ivec::unsafe::from_buf(ptr, byte_len(s)); } -// FIXME temp thing -fn unsafe_from_bytes(v: vec[mutable? u8]) -> str { - ret rustrt::str_from_vec(v); -} - fn unsafe_from_bytes_ivec(v: &[mutable? u8]) -> str { ret rustrt::str_from_ivec(v); } |
