std: remove transitional code

This commit is contained in:
Tim Chevalier 2013-01-29 16:56:59 -08:00
parent a9587b8fcd
commit 793f20ad32
2 changed files with 0 additions and 28 deletions

View file

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

View file

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