about summary refs log tree commit diff
path: root/src/rt/test/rust_test_runtime.cpp
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <respindola@mozilla.com>2011-05-24 19:07:30 -0400
committerRafael Ávila de Espíndola <respindola@mozilla.com>2011-05-24 19:07:30 -0400
commit395940f7e396fea4507563f34c6e381e9d0c1a77 (patch)
treeb5fbb760dff924c387797bba9141f06177bf5ecd /src/rt/test/rust_test_runtime.cpp
parentde2e84e5b044d8635387bacd37d6088bd8dffd66 (diff)
downloadrust-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.cpp5
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();