File tree 1 file changed +0
-30
lines changed 1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -1434,36 +1434,6 @@ impl<T: Iterator<char>> Parser<T> {
1434
1434
} ,
1435
1435
} ,
1436
1436
_ => 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.*/
1467
1437
}
1468
1438
escape = false ;
1469
1439
} else if self . ch_is ( '\\' ) {
You can’t perform that action at this time.
0 commit comments