summary refs log tree commit diff
path: root/src/libstd/task
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2013-07-29 12:51:55 -0700
committerBrian Anderson <banderson@mozilla.com>2013-07-30 17:10:21 -0700
commit8f835d42d7f7090ab6408a9aa6316a0f8f21f3f3 (patch)
tree9a2b7dc1aa803f3ca3d86c1179413ce426213fb1 /src/libstd/task
parent81dda9d9cb5a8e472509c6f335acc81083d74b91 (diff)
downloadrust-8f835d42d7f7090ab6408a9aa6316a0f8f21f3f3.tar.gz
rust-8f835d42d7f7090ab6408a9aa6316a0f8f21f3f3.zip
std: Remove get_task function. Unused
Diffstat (limited to 'src/libstd/task')
-rw-r--r--src/libstd/task/mod.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/libstd/task/mod.rs b/src/libstd/task/mod.rs
index 7dec63aef58..5673e100625 100644
--- a/src/libstd/task/mod.rs
+++ b/src/libstd/task/mod.rs
@@ -44,7 +44,6 @@ use result::Result;
 use result;
 use rt::{context, OldTaskContext, TaskContext};
 use rt::local::Local;
-use task::rt::task_id;
 use unstable::finally::Finally;
 use util;
 
@@ -58,12 +57,6 @@ mod local_data_priv;
 pub mod rt;
 pub mod spawn;
 
-/// A handle to a task
-#[deriving(Eq)]
-pub enum Task {
-    TaskHandle(task_id)
-}
-
 /**
  * Indicates the manner in which a task exited.
  *
@@ -570,14 +563,6 @@ pub fn failing() -> bool {
     }
 }
 
-pub fn get_task() -> Task {
-    //! Get a handle to the running task
-
-    unsafe {
-        TaskHandle(rt::get_task_id())
-    }
-}
-
 /**
  * Temporarily make the task unkillable
  *