about summary refs log tree commit diff
path: root/src/libstd/workcache.rs
diff options
context:
space:
mode:
authorMatthew McPherrin <matthew@mcpherrin.ca>2013-02-08 15:21:46 -0500
committerMatthew McPherrin <matthew@mcpherrin.ca>2013-02-08 15:21:46 -0500
commit46df7985a5f3e1e1a50d0f5f81f32bb1e4be8967 (patch)
tree4780d31268ce0e252a6ca47765bd6e8430e370da /src/libstd/workcache.rs
parent64fedfbc4ef37b56f7bb12e2864f4011e4031ac5 (diff)
parent3764cfbf57646becdeefa2996f812cbe40b016e7 (diff)
Merge branch 'master' of https://github.com/mozilla/rust
Diffstat (limited to 'src/libstd/workcache.rs')
-rw-r--r--src/libstd/workcache.rs23
1 files changed, 2 insertions, 21 deletions
diff --git a/src/libstd/workcache.rs b/src/libstd/workcache.rs
index 95deec08feb..b828c4ef629 100644
--- a/src/libstd/workcache.rs
+++ b/src/libstd/workcache.rs
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[allow(deprecated_mode)];
+
 use json;
 use sha1;
 use serialize::{Encoder, Encodable, Decoder, Decodable};
@@ -167,20 +169,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 +223,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)>>>