aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoy Frostig <[email protected]>2010-08-11 16:09:22 -0700
committerRoy Frostig <[email protected]>2010-08-11 16:10:44 -0700
commit22719e45b81fe2985868afa0935cd7b3a5cf6d05 (patch)
tree572289ca6ed229ec4c47fbd1b7350ac487b3c22c /src
parentIgnore upcall_flush for channels that are disassociated from ports. This make... (diff)
downloadrust-22719e45b81fe2985868afa0935cd7b3a5cf6d05.tar.xz
rust-22719e45b81fe2985868afa0935cd7b3a5cf6d05.zip
Remove commented-out code that slipped in during last commit.
Diffstat (limited to 'src')
-rw-r--r--src/rt/rust_builtin.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp
index 64b587c0..acbb10a4 100644
--- a/src/rt/rust_builtin.cpp
+++ b/src/rt/rust_builtin.cpp
@@ -166,22 +166,6 @@ str_from_vec(rust_task *task, rust_vec *v)
return st;
}
-/*
-extern "C" CDECL rust_str*
-str_alloc(rust_task *task, size_t n_bytes)
-{
- rust_dom *dom = task->dom;
- size_t alloc = next_power_of_two(sizeof(rust_str) + n_bytes);
- void *mem = dom->malloc(alloc);
- if (!mem) {
- task->fail(2);
- return NULL;
- }
- rust_str *st = new (mem) rust_str(dom, alloc, 1, (uint8_t const *)"");
- return st;
-}
-*/
-
extern "C" CDECL void *
rand_new(rust_task *task)
{