diff options
| author | Roy Frostig <[email protected]> | 2010-08-11 16:09:22 -0700 |
|---|---|---|
| committer | Roy Frostig <[email protected]> | 2010-08-11 16:10:44 -0700 |
| commit | 22719e45b81fe2985868afa0935cd7b3a5cf6d05 (patch) | |
| tree | 572289ca6ed229ec4c47fbd1b7350ac487b3c22c | |
| parent | Ignore upcall_flush for channels that are disassociated from ports. This make... (diff) | |
| download | rust-22719e45b81fe2985868afa0935cd7b3a5cf6d05.tar.xz rust-22719e45b81fe2985868afa0935cd7b3a5cf6d05.zip | |
Remove commented-out code that slipped in during last commit.
| -rw-r--r-- | src/rt/rust_builtin.cpp | 16 |
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) { |