diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-03-19 18:37:44 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-03-19 19:02:54 -0700 |
| commit | ccaace6587c1e6c1323b8f36ec4a1c07bcfe4ccd (patch) | |
| tree | 55c3b1f198939db4592e6758298e322420469e7a /src | |
| parent | bf13fb7921bae57bcb153f7842afa2959aaf47a1 (diff) | |
rt: Remove an unused function
Diffstat (limited to 'src')
| -rw-r--r-- | src/rt/rust_util.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/rt/rust_util.h b/src/rt/rust_util.h index 211ad71b545..76bcfd36fdc 100644 --- a/src/rt/rust_util.h +++ b/src/rt/rust_util.h @@ -88,17 +88,6 @@ inline size_t vec_size(size_t elems) { } template <typename T> -inline rust_vec * -vec_alloc(size_t alloc_elts, size_t fill_elts, const char *name) { - rust_task *task = rust_task_thread::get_task(); - size_t size = vec_size<T>(alloc_elts); - rust_vec *vec = (rust_vec *) task->kernel->malloc(size, name); - vec->fill = fill_elts * sizeof(T); - vec->alloc = alloc_elts * sizeof(T); - return vec; -} - -template <typename T> inline T * vec_data(rust_vec *v) { return reinterpret_cast<T*>(v->data); |
