From 8f835d42d7f7090ab6408a9aa6316a0f8f21f3f3 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 29 Jul 2013 12:51:55 -0700 Subject: std: Remove get_task function. Unused --- src/libstd/task/mod.rs | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/libstd/task') 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 * -- cgit 1.4.1-3-g733a5