std: Remove get_task function. Unused
This commit is contained in:
parent
81dda9d9cb
commit
8f835d42d7
4 changed files with 13 additions and 25 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue