diff options
| author | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2011-05-24 19:07:30 -0400 |
|---|---|---|
| committer | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2011-05-24 19:07:30 -0400 |
| commit | 395940f7e396fea4507563f34c6e381e9d0c1a77 (patch) | |
| tree | b5fbb760dff924c387797bba9141f06177bf5ecd /src/rt/test/rust_test_runtime.cpp | |
| parent | de2e84e5b044d8635387bacd37d6088bd8dffd66 (diff) | |
| download | rust-395940f7e396fea4507563f34c6e381e9d0c1a77.tar.gz rust-395940f7e396fea4507563f34c6e381e9d0c1a77.zip | |
Dead code elimination.
Diffstat (limited to 'src/rt/test/rust_test_runtime.cpp')
| -rw-r--r-- | src/rt/test/rust_test_runtime.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rt/test/rust_test_runtime.cpp b/src/rt/test/rust_test_runtime.cpp index ffbc15d95f6..c683302dec2 100644 --- a/src/rt/test/rust_test_runtime.cpp +++ b/src/rt/test/rust_test_runtime.cpp @@ -13,7 +13,7 @@ rust_test_runtime::~rust_test_runtime() { void rust_domain_test::worker::run() { - rust_handle<rust_dom> *handle = kernel->create_domain(NULL, "test"); + rust_handle<rust_dom> *handle = kernel->create_domain("test"); for (int i = 0; i < TASKS; i++) { handle->referent()->create_task(NULL, "child"); } @@ -49,9 +49,8 @@ void task_entry() { void rust_task_test::worker::run() { - rust_crate *crate = parent->suite->crate; rust_handle<rust_dom> *handle = - kernel->create_domain(crate, "test"); + kernel->create_domain("test"); rust_dom *domain = handle->referent(); domain->root_task->start((uintptr_t)&task_entry, (uintptr_t)NULL, 0); domain->start_main_loop(); |
