about summary refs log tree commit diff
path: root/src/rt/rust_builtin.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-08-11 17:15:34 -0700
committerBrian Anderson <banderson@mozilla.com>2011-08-12 12:08:27 -0700
commit878fbac2781a2eb55ca32789fe1ce7c45579ffdf (patch)
tree4be811d673676715c2c60cb1c6a2513573369c67 /src/rt/rust_builtin.cpp
parent740196987edf720ee03b7db367106a74fa446356 (diff)
downloadrust-878fbac2781a2eb55ca32789fe1ce7c45579ffdf.tar.gz
rust-878fbac2781a2eb55ca32789fe1ce7c45579ffdf.zip
Remove str_from_vec runtime function
Diffstat (limited to 'src/rt/rust_builtin.cpp')
-rw-r--r--src/rt/rust_builtin.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp
index 2037714aae6..c6a3c8c01d6 100644
--- a/src/rt/rust_builtin.cpp
+++ b/src/rt/rust_builtin.cpp
@@ -305,23 +305,6 @@ str_from_ivec(rust_task *task, rust_ivec *v)
 }
 
 extern "C" CDECL rust_str *
-str_from_vec(rust_task *task, rust_vec *v)
-{
-    rust_str *st =
-        vec_alloc_with_data(task,
-                            v->fill + 1,  // +1 to fit at least '\0'
-                            v->fill,
-                            1,
-                            v->fill ? (void*)v->data : NULL);
-    if (!st) {
-        task->fail();
-        return NULL;
-    }
-    st->data[st->fill++] = '\0';
-    return st;
-}
-
-extern "C" CDECL rust_str *
 str_from_cstr(rust_task *task, char *sbuf)
 {
     size_t len = strlen(sbuf) + 1;