about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKevin Cantu <me@kevincantu.org>2012-02-22 23:56:51 -0800
committerMarijn Haverbeke <marijnh@gmail.com>2012-02-23 17:00:19 +0100
commitcec053487c84e8b5406e24d6f9f72966cdcfd0da (patch)
tree1f13ab3a1d0bf4bada18e2e03b277aa98a22c9a6
parent6ea3d7935efba59d0b9d81f233e66ea69f1e1016 (diff)
(core::str) stop using index_chars
-rw-r--r--src/comp/back/link.rs4
-rw-r--r--src/libcore/str.rs4
2 files changed, 3 insertions, 5 deletions
diff --git a/src/comp/back/link.rs b/src/comp/back/link.rs
index e02aad48c5a..5b7d7a35c53 100644
--- a/src/comp/back/link.rs
+++ b/src/comp/back/link.rs
@@ -109,9 +109,9 @@ mod write {
     // Decides what to call an intermediate file, given the name of the output
     // and the extension to use.
     fn mk_intermediate_name(output_path: str, extension: str) -> str unsafe {
-        let stem = alt str::index_chars(output_path, '.') {
+        let stem = alt str::index(output_path, '.') {
                        option::some(dot_pos) {
-                           str::slice_chars(output_path, 0u, dot_pos)
+                           str::slice(output_path, 0u, dot_pos)
                        }
                        option::none { output_path }
                    };
diff --git a/src/libcore/str.rs b/src/libcore/str.rs
index 8760403a77a..b9eea353e21 100644
--- a/src/libcore/str.rs
+++ b/src/libcore/str.rs
@@ -70,11 +70,9 @@ export
    lines_iter,
 
    // Searching
-   index_chars,
+   //index_chars,
    index,
    index_from,
-   //byte_index,
-   //byte_index_from,
    rindex,
    //rindex_chars,
    find_chars,