summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2012-03-15 17:28:14 +0100
committerMarijn Haverbeke <marijnh@gmail.com>2012-03-16 00:44:06 +0100
commit146b61189a5c206d744a09b9336c26e3dc1637c4 (patch)
tree16e44a1b90c1f8b69dc663ad3c21c2bb4a4ccc11 /src/rt/rust_task.cpp
parentbc21a5ddbe70b2a0c68db9e632ee7e78de9fa59e (diff)
downloadrust-146b61189a5c206d744a09b9336c26e3dc1637c4.tar.gz
rust-146b61189a5c206d744a09b9336c26e3dc1637c4.zip
Get rid of rust_crate_cache in the runtime
We are no longer generating dynamic tydescs or dicts.

Issue #1982
Diffstat (limited to 'src/rt/rust_task.cpp')
-rw-r--r--src/rt/rust_task.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp
index 651488b2ebe..5bea4925829 100644
--- a/src/rt/rust_task.cpp
+++ b/src/rt/rust_task.cpp
@@ -71,7 +71,6 @@ rust_task::rust_task(rust_task_thread *thread, rust_task_list *state,
     runtime_sp(0),
     sched(thread->sched),
     thread(thread),
-    cache(NULL),
     kernel(thread->kernel),
     name(name),
     list_index(-1),
@@ -445,16 +444,6 @@ rust_task::die() {
     transition(&thread->running_tasks, &thread->dead_tasks, NULL, "none");
 }
 
-rust_crate_cache *
-rust_task::get_crate_cache()
-{
-    if (!cache) {
-        DLOG(thread, task, "fetching cache for current crate");
-        cache = thread->get_cache();
-    }
-    return cache;
-}
-
 void
 rust_task::backtrace() {
     if (!log_rt_backtrace) return;