Skip to content

Commit df31373

Browse files
committed
rm commented out std::map code from json module
it was replaced by LinearMap
1 parent ed45354 commit df31373

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/libstd/json.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,18 +1162,6 @@ impl <A: ToJson Copy> LinearMap<~str, A>: ToJson {
11621162
}
11631163
}
11641164
1165-
/*
1166-
impl <A: ToJson Copy> @std::map::HashMap<~str, A>: ToJson {
1167-
fn to_json() -> Json {
1168-
let mut d = LinearMap::new();
1169-
for self.each_ref |key, value| {
1170-
d.insert(copy *key, value.to_json());
1171-
}
1172-
Object(~d)
1173-
}
1174-
}
1175-
*/
1176-
11771165
impl <A: ToJson> Option<A>: ToJson {
11781166
fn to_json() -> Json {
11791167
match self {

0 commit comments

Comments
 (0)