diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2015-01-05 16:19:15 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2015-01-05 17:22:18 -0500 |
| commit | eb2506cc1bcf2011d4e8ce99ff7cf74c2c1d1493 (patch) | |
| tree | 437b342261834278ef6b45fde186c5944eb4819e /src/libserialize | |
| parent | 97f870a1fc24ecf3a432170c7040863d0399eb85 (diff) | |
| download | rust-eb2506cc1bcf2011d4e8ce99ff7cf74c2c1d1493.tar.gz rust-eb2506cc1bcf2011d4e8ce99ff7cf74c2c1d1493.zip | |
remove more stage0 stuff
Diffstat (limited to 'src/libserialize')
| -rw-r--r-- | src/libserialize/json_stage0.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/libserialize/json_stage0.rs b/src/libserialize/json_stage0.rs index 84180159c2b..9932f8d0306 100644 --- a/src/libserialize/json_stage0.rs +++ b/src/libserialize/json_stage0.rs @@ -1123,15 +1123,6 @@ impl Json { } } -// NOTE(stage0): remove impl after a snapshot -#[cfg(stage0)] -impl<'a> ops::Index<&'a str, Json> for Json { - fn index(&self, idx: & &str) -> &Json { - self.find(*idx).unwrap() - } -} - -#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot impl<'a> ops::Index<&'a str> for Json { type Output = Json; @@ -1140,18 +1131,6 @@ impl<'a> ops::Index<&'a str> for Json { } } -// NOTE(stage0): remove impl after a snapshot -#[cfg(stage0)] -impl ops::Index<uint, Json> for Json { - fn index<'a>(&'a self, idx: &uint) -> &'a Json { - match self { - &Json::Array(ref v) => v.index(idx), - _ => panic!("can only index Json with uint if it is an array") - } - } -} - -#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot impl ops::Index<uint> for Json { type Output = Json; |
