diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2013-01-29 16:56:59 -0800 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2013-01-31 19:35:57 -0800 |
| commit | 793f20ad327f08a59dea5f67cd07ffddf9679d15 (patch) | |
| tree | 1bc3da330a6e879bc6bb68f5df114c501c7e8fa7 /src/libstd/workcache.rs | |
| parent | a9587b8fcd3e436cf2e4a25997e6eecc4608235b (diff) | |
| download | rust-793f20ad327f08a59dea5f67cd07ffddf9679d15.tar.gz rust-793f20ad327f08a59dea5f67cd07ffddf9679d15.zip | |
std: remove transitional code
Diffstat (limited to 'src/libstd/workcache.rs')
| -rw-r--r-- | src/libstd/workcache.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/libstd/workcache.rs b/src/libstd/workcache.rs index 81285e5e563..f9a2f934e46 100644 --- a/src/libstd/workcache.rs +++ b/src/libstd/workcache.rs @@ -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)>>> |
