Skip to content

Commit 793f20a

Browse files
committed
std: remove transitional code
1 parent a9587b8 commit 793f20a

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

src/libstd/comm.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ use core::pipes;
2323
use core::prelude::*;
2424

2525
/// An extension of `pipes::stream` that allows both sending and receiving.
26-
#[cfg(stage0)]
27-
pub struct DuplexStream<T:Owned, U:Owned> {
28-
priv chan: Chan<T>,
29-
priv port: Port<U>,
30-
}
31-
#[cfg(stage1)]
32-
#[cfg(stage2)]
3326
pub struct DuplexStream<T, U> {
3427
priv chan: Chan<T>,
3528
priv port: Port<U>,

src/libstd/workcache.rs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -167,20 +167,6 @@ struct Database {
167167
}
168168

169169
impl Database {
170-
#[cfg(stage0)]
171-
#[cfg(stage1)]
172-
fn prepare(&mut self, fn_name: &str,
173-
declared_inputs: &WorkMap) -> Option<(WorkMap, WorkMap, ~str)>
174-
{
175-
let k = json_encode(&(fn_name, declared_inputs));
176-
let db_cache = copy self.db_cache;
177-
match db_cache.find(&k) {
178-
None => None,
179-
Some(&v) => Some(json_decode(copy v))
180-
}
181-
}
182-
183-
#[cfg(stage2)]
184170
fn prepare(&mut self, fn_name: &str,
185171
declared_inputs: &WorkMap) -> Option<(WorkMap, WorkMap, ~str)>
186172
{
@@ -235,13 +221,6 @@ struct Exec {
235221
discovered_outputs: WorkMap
236222
}
237223
238-
#[cfg(stage0)]
239-
struct Work<T:Owned> {
240-
prep: @Mut<Prep>,
241-
res: Option<Either<T,PortOne<(Exec,T)>>>
242-
}
243-
#[cfg(stage1)]
244-
#[cfg(stage2)]
245224
struct Work<T> {
246225
prep: @Mut<Prep>,
247226
res: Option<Either<T,PortOne<(Exec,T)>>>

0 commit comments

Comments
 (0)