std: remove transitional code
This commit is contained in:
parent
a9587b8fcd
commit
793f20ad32
2 changed files with 0 additions and 28 deletions
|
|
@ -23,13 +23,6 @@ use core::pipes;
|
|||
use core::prelude::*;
|
||||
|
||||
/// An extension of `pipes::stream` that allows both sending and receiving.
|
||||
#[cfg(stage0)]
|
||||
pub struct DuplexStream<T:Owned, U:Owned> {
|
||||
priv chan: Chan<T>,
|
||||
priv port: Port<U>,
|
||||
}
|
||||
#[cfg(stage1)]
|
||||
#[cfg(stage2)]
|
||||
pub struct DuplexStream<T, U> {
|
||||
priv chan: Chan<T>,
|
||||
priv port: Port<U>,
|
||||
|
|
|
|||
|
|
@ -167,20 +167,6 @@ struct Database {
|
|||
}
|
||||
|
||||
impl Database {
|
||||
#[cfg(stage0)]
|
||||
#[cfg(stage1)]
|
||||
fn prepare(&mut self, fn_name: &str,
|
||||
declared_inputs: &WorkMap) -> Option<(WorkMap, WorkMap, ~str)>
|
||||
{
|
||||
let k = json_encode(&(fn_name, declared_inputs));
|
||||
let db_cache = copy self.db_cache;
|
||||
match db_cache.find(&k) {
|
||||
None => None,
|
||||
Some(&v) => Some(json_decode(copy v))
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(stage2)]
|
||||
fn prepare(&mut self, fn_name: &str,
|
||||
declared_inputs: &WorkMap) -> Option<(WorkMap, WorkMap, ~str)>
|
||||
{
|
||||
|
|
@ -235,13 +221,6 @@ struct Exec {
|
|||
discovered_outputs: WorkMap
|
||||
}
|
||||
|
||||
#[cfg(stage0)]
|
||||
struct Work<T:Owned> {
|
||||
prep: @Mut<Prep>,
|
||||
res: Option<Either<T,PortOne<(Exec,T)>>>
|
||||
}
|
||||
#[cfg(stage1)]
|
||||
#[cfg(stage2)]
|
||||
struct Work<T> {
|
||||
prep: @Mut<Prep>,
|
||||
res: Option<Either<T,PortOne<(Exec,T)>>>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue