summary refs log tree commit diff
path: root/src/libserialize
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-03-24 18:13:54 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-03-26 09:57:05 -0700
commit36ef29abf7fa14dc9361d6b30ff7f8d18bfb4157 (patch)
tree7769ba1cae0d202a55b219efb2a04032f3bf70eb /src/libserialize
parent557d4346a26266d2eb13f6b0adf106b8873b0da1 (diff)
downloadrust-36ef29abf7fa14dc9361d6b30ff7f8d18bfb4157.tar.gz
rust-36ef29abf7fa14dc9361d6b30ff7f8d18bfb4157.zip
Register new snapshots
Diffstat (limited to 'src/libserialize')
-rw-r--r--src/libserialize/json.rs23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/libserialize/json.rs b/src/libserialize/json.rs
index 0d6ed91d529..d5f494d2ae9 100644
--- a/src/libserialize/json.rs
+++ b/src/libserialize/json.rs
@@ -1218,16 +1218,6 @@ impl Json {
     }
 }
 
-#[cfg(stage0)]
-impl<'a> Index<&'a str>  for Json {
-    type Output = Json;
-
-    fn index(&self, idx: & &str) -> &Json {
-        self.find(*idx).unwrap()
-    }
-}
-
-#[cfg(not(stage0))]
 impl<'a> Index<&'a str>  for Json {
     type Output = Json;
 
@@ -1236,19 +1226,6 @@ impl<'a> Index<&'a str>  for Json {
     }
 }
 
-#[cfg(stage0)]
-impl Index<uint> for Json {
-    type Output = Json;
-
-    fn index<'a>(&'a self, idx: &uint) -> &'a Json {
-        match self {
-            &Json::Array(ref v) => &v[*idx],
-            _ => panic!("can only index Json with uint if it is an array")
-        }
-    }
-}
-
-#[cfg(not(stage0))]
 impl Index<uint> for Json {
     type Output = Json;