From e52e113cab72c34d15f81df848881fcee003b01f Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sun, 26 Feb 2023 19:35:57 +0100 Subject: [PATCH] remove unnecessary code in YamlParser (#391) --- .../java/com/fasterxml/jackson/dataformat/yaml/YAMLParser.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/yaml/src/main/java/com/fasterxml/jackson/dataformat/yaml/YAMLParser.java b/yaml/src/main/java/com/fasterxml/jackson/dataformat/yaml/YAMLParser.java index 38dd98be..dca5eb3c 100644 --- a/yaml/src/main/java/com/fasterxml/jackson/dataformat/yaml/YAMLParser.java +++ b/yaml/src/main/java/com/fasterxml/jackson/dataformat/yaml/YAMLParser.java @@ -537,9 +537,6 @@ public JsonToken nextToken() throws IOException close(); return (_currToken = null); } - if (evt.is(Event.ID.StreamStart)) { // useless, skip - continue; - } } }