Skip to content

Commit

Permalink
Remove unused method writeAndFlushValueError from JsonRpcBasicServer.…
Browse files Browse the repository at this point in the history
… Remove unused inner class ErrorObjectWithJsonError
  • Loading branch information
cyb3r4nt committed Jun 11, 2022
1 parent 6818b01 commit 48152ce
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/main/java/com/googlecode/jsonrpc4j/JsonRpcBasicServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -953,12 +953,6 @@ private boolean isNumericAssignable(Class<?> type) {
|| long.class.isAssignableFrom(type) || float.class.isAssignableFrom(type) || double.class.isAssignableFrom(type);
}

private JsonError writeAndFlushValueError(OutputStream output, ErrorObjectWithJsonError value) throws IOException {
logger.debug("failed {}", value);
writeAndFlushValue(output, value.node);
return value.error;
}

/**
* Writes and flushes a value to the given {@link OutputStream}
* and prevents Jackson from closing it. Also writes newline.
Expand Down Expand Up @@ -1117,23 +1111,6 @@ public void setParallelBatchProcessingTimeout(long parallelBatchProcessingTimeou
this.parallelBatchProcessingTimeout = parallelBatchProcessingTimeout;
}

private static class ErrorObjectWithJsonError {
private final ObjectNode node;
private final JsonError error;

public ErrorObjectWithJsonError(ObjectNode node, JsonError error) {
this.node = node;
this.error = error;
}

@Override
public String toString() {
return "ErrorObjectWithJsonError{" +
"node=" + node +
", error=" + error +
'}';
}
}

/**
* Simple inner class for the {@code findXXX} methods.
Expand Down

0 comments on commit 48152ce

Please sign in to comment.