Skip to content

Commit

Permalink
Remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
gravity9mateusz committed Jul 3, 2023
1 parent 9f06a90 commit 2f9cb39
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/main/java/com/gravity9/jsonpatch/jackson/JsonNumEquals.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,20 +147,6 @@ private int doHash(final JsonNode t)
return ret;
}

// private static boolean numEquals(final JsonNode a, final JsonNode b)
// {
// /*
// * If both numbers are integers, delegate to JsonNode.
// */
// if (a.isIntegralNumber() && b.isIntegralNumber())
// return a.equals(b);
//
// /*
// * Otherwise, compare decimal values.
// */
// return a.decimalValue().compareTo(b.decimalValue()) == 0;
// }

private boolean numEquals(JsonNode a, JsonNode b) {
return a.isNumber() && b.isNumber()
? areNumberNodesNumericallyEqual(a, b)
Expand Down

0 comments on commit 2f9cb39

Please sign in to comment.