diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-08-18 12:17:33 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-08-18 13:09:50 -0700 |
| commit | 7903daf86fc73a0b56d3ff0b1541d79f3540700e (patch) | |
| tree | 72e8de046b46973cb0b2b328d5cc0d3c27e7be1f /src/rt/rust_upcall.cpp | |
| parent | c2d2dad093401ad97f19f96def0aa3f3f2a863bb (diff) | |
| download | rust-7903daf86fc73a0b56d3ff0b1541d79f3540700e.tar.gz rust-7903daf86fc73a0b56d3ff0b1541d79f3540700e.zip | |
Remove upcall_new_vec
Diffstat (limited to 'src/rt/rust_upcall.cpp')
| -rw-r--r-- | src/rt/rust_upcall.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp index ac99f501f25..19f27f6fe94 100644 --- a/src/rt/rust_upcall.cpp +++ b/src/rt/rust_upcall.cpp @@ -222,24 +222,6 @@ upcall_new_str(rust_task *task, char const *s, size_t fill) { return make_str(task, s, fill); } -extern "C" CDECL rust_vec * -upcall_new_vec(rust_task *task, size_t fill, type_desc *td) { - LOG_UPCALL_ENTRY(task); - - rust_scheduler *sched = task->sched; - DLOG(sched, mem, "upcall new_vec(%" PRIdPTR ")", fill); - size_t alloc = next_power_of_two(sizeof(rust_vec) + fill); - void *mem = task->malloc(alloc, "rust_vec (upcall_new_vec)", td); - if (!mem) { - task->fail(); - return NULL; - } - rust_vec *v = new (mem) rust_vec(alloc, 0, NULL); - LOG(task, mem, - "upcall new_vec(%" PRIdPTR ") = 0x%" PRIxPTR, fill, v); - return v; -} - static rust_vec * vec_grow(rust_task *task, rust_vec *v, |
