Skip to content

Commit e2eccd8

Browse files
committed
Remove obsolete code
1 parent a7690cd commit e2eccd8

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

src/main/java/com/github/fge/jsonschema/process/JsonPatch.java

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,8 @@
1717

1818
package com.github.fge.jsonschema.process;
1919

20-
import com.fasterxml.jackson.core.JsonLocation;
21-
import com.fasterxml.jackson.core.JsonParseException;
22-
import com.fasterxml.jackson.core.JsonParser;
2320
import com.fasterxml.jackson.core.JsonProcessingException;
2421
import com.fasterxml.jackson.databind.JsonNode;
25-
import com.fasterxml.jackson.databind.MappingIterator;
2622
import com.fasterxml.jackson.databind.ObjectMapper;
2723
import com.fasterxml.jackson.databind.node.ArrayNode;
2824
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
@@ -142,27 +138,4 @@ private static JsonNode buildReport(final ProcessingReport report)
142138
ret.add(message.asJson());
143139
return ret;
144140
}
145-
private static JsonNode readOne(final String input)
146-
throws IOException
147-
{
148-
final MappingIterator<JsonNode> iterator;
149-
final JsonNode ret;
150-
final JsonLocation location;
151-
152-
try (
153-
final StringReader reader = new StringReader(input);
154-
final JsonParser parser = MAPPER.getFactory().createParser(reader);
155-
) {
156-
iterator = MAPPER.readValues(parser, JsonNode.class);
157-
if (!iterator.hasNextValue())
158-
throw new JsonParseException("no data",
159-
new JsonLocation(reader, 0L, 1, 1));
160-
ret = iterator.nextValue();
161-
location = parser.getCurrentLocation();
162-
if (!iterator.hasNextValue())
163-
return ret;
164-
throw new JsonParseException("extra data after first node",
165-
location);
166-
}
167-
}
168141
}

0 commit comments

Comments
 (0)