Skip to content

Commit

Permalink
Remove end_map, end_seq
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Westerlind authored and Markus Westerlind committed Apr 7, 2022
1 parent 1b32596 commit 2957794
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1196,10 +1196,6 @@ impl<'de, R: Read<'de>> Deserializer<R> {
if_checking_recursion_limit! {
self.remaining_depth += 1;
}
self.end_seq()
}

fn end_seq(&mut self) -> Result<()> {
match tri!(self.parse_whitespace()) {
Some(b']') => {
self.eat_char();
Expand All @@ -1221,10 +1217,6 @@ impl<'de, R: Read<'de>> Deserializer<R> {
if_checking_recursion_limit! {
self.remaining_depth += 1;
}
self.end_map()
}

fn end_map(&mut self) -> Result<()> {
match tri!(self.parse_whitespace_in_object()) {
b'}' => {
self.eat_char();
Expand Down

0 comments on commit 2957794

Please sign in to comment.