rm commented out std::map code from json module
it was replaced by LinearMap
This commit is contained in:
parent
ed45354a95
commit
df31373406
1 changed files with 0 additions and 12 deletions
|
@ -1162,18 +1162,6 @@ impl <A: ToJson Copy> LinearMap<~str, A>: ToJson {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
impl <A: ToJson Copy> @std::map::HashMap<~str, A>: ToJson {
|
|
||||||
fn to_json() -> Json {
|
|
||||||
let mut d = LinearMap::new();
|
|
||||||
for self.each_ref |key, value| {
|
|
||||||
d.insert(copy *key, value.to_json());
|
|
||||||
}
|
|
||||||
Object(~d)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
impl <A: ToJson> Option<A>: ToJson {
|
impl <A: ToJson> Option<A>: ToJson {
|
||||||
fn to_json() -> Json {
|
fn to_json() -> Json {
|
||||||
match self {
|
match self {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue