Skip to content

Commit 85d9cfb

Browse files
committed
serialize: Remove old commented out code
1 parent 746d086 commit 85d9cfb

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

src/libserialize/json.rs

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,36 +1434,6 @@ impl<T: Iterator<char>> Parser<T> {
14341434
},
14351435
},
14361436
_ => return self.error(InvalidEscape),
1437-
/*=======
1438-
'u' => {
1439-
// Parse \u1234.
1440-
let mut i = 0u;
1441-
let mut n = 0u;
1442-
while i < 4u && !self.eof() {
1443-
self.bump();
1444-
n = match self.ch_or_null() {
1445-
c @ '0' .. '9' => n * 16u + (c as uint) - ('0' as uint),
1446-
'a' | 'A' => n * 16u + 10u,
1447-
'b' | 'B' => n * 16u + 11u,
1448-
'c' | 'C' => n * 16u + 12u,
1449-
'd' | 'D' => n * 16u + 13u,
1450-
'e' | 'E' => n * 16u + 14u,
1451-
'f' | 'F' => n * 16u + 15u,
1452-
_ => return self.error(UnrecognizedHex)
1453-
};
1454-
1455-
i += 1u;
1456-
}
1457-
1458-
// Error out if we didn't parse 4 digits.
1459-
if i != 4u {
1460-
return self.error(NotFourDigit);
1461-
}
1462-
1463-
res.push_char(char::from_u32(n as u32).unwrap());
1464-
}
1465-
_ => return self.error(InvalidEscape),
1466-
>>>>>>> Add a streaming parser to serialize::json.*/
14671437
}
14681438
escape = false;
14691439
} else if self.ch_is('\\') {

0 commit comments

Comments
 (0)