std: Remove get_task function. Unused

This commit is contained in:
Brian Anderson 2013-07-29 12:51:55 -07:00
parent 81dda9d9cb
commit 8f835d42d7
4 changed files with 13 additions and 25 deletions

View file

@ -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
*