about summary refs log tree commit diff
path: root/src/lib
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-09-01 16:09:15 -0700
committerBrian Anderson <banderson@mozilla.com>2011-09-01 16:09:15 -0700
commite824775d5332b160c7623c60f2e04372e83f26aa (patch)
treef4fbf98de07957d4761595b00828a5207e0e40bd /src/lib
parent1b15c9e1553825e23915e4f6532669064543389d (diff)
downloadrust-e824775d5332b160c7623c60f2e04372e83f26aa.tar.gz
rust-e824775d5332b160c7623c60f2e04372e83f26aa.zip
Remove std::str. Issue #855
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/fs.rs1
-rw-r--r--src/lib/net.rs1
-rw-r--r--src/lib/sio.rs1
-rw-r--r--src/lib/std.rc1
-rw-r--r--src/lib/str.rs10
5 files changed, 0 insertions, 14 deletions
diff --git a/src/lib/fs.rs b/src/lib/fs.rs
index abc8c14ea3a..297c27cb2a8 100644
--- a/src/lib/fs.rs
+++ b/src/lib/fs.rs
@@ -1,7 +1,6 @@
 
 import os::getcwd;
 import os_fs;
-import str;
 
 native "rust" mod rustrt {
     fn rust_file_is_dir(path: istr::sbuf) -> int;
diff --git a/src/lib/net.rs b/src/lib/net.rs
index f85b8ccabbe..4dac4eee04c 100644
--- a/src/lib/net.rs
+++ b/src/lib/net.rs
@@ -1,4 +1,3 @@
-import str;
 import vec;
 import uint;
 
diff --git a/src/lib/sio.rs b/src/lib/sio.rs
index 9040210b826..83397d132c2 100644
--- a/src/lib/sio.rs
+++ b/src/lib/sio.rs
@@ -3,7 +3,6 @@ import comm::chan;
 import comm::send;
 import comm::recv;
 
-import str;
 import net;
 
 type ctx = aio::ctx;
diff --git a/src/lib/std.rc b/src/lib/std.rc
index 36244838f4c..21b09312860 100644
--- a/src/lib/std.rc
+++ b/src/lib/std.rc
@@ -15,7 +15,6 @@ mod uint;
 mod u8;
 mod u64;
 mod vec;
-mod str;
 mod istr;
 
 // General io and system-services modules.
diff --git a/src/lib/str.rs b/src/lib/str.rs
deleted file mode 100644
index b6b13e399b8..00000000000
--- a/src/lib/str.rs
+++ /dev/null
@@ -1,10 +0,0 @@
-export unsafe_from_bytes;
-
-native "rust" mod rustrt {
-    fn str_from_vec(b: &[mutable? u8]) -> str;
-    fn refcount<T>(s: str) -> uint;
-}
-
-fn unsafe_from_bytes(v: &[mutable? u8]) -> str {
-    ret rustrt::str_from_vec(v);
-}