This is an automated email from the ASF dual-hosted git repository. aherbert pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-geometry.git
commit a89dec7bbdeb635be5f0df815d262283d73f0d2d Author: Alex Herbert <aherb...@apache.org> AuthorDate: Fri Apr 25 12:46:15 2025 +0100 sonar fix: Remove unused precision argument --- .../apache/commons/geometry/euclidean/oned/IntervalTest.java | 10 ---------- .../commons/geometry/euclidean/oned/RegionBSPTree1DTest.java | 4 ---- 2 files changed, 14 deletions(-) diff --git a/commons-geometry-euclidean/src/test/java/org/apache/commons/geometry/euclidean/oned/IntervalTest.java b/commons-geometry-euclidean/src/test/java/org/apache/commons/geometry/euclidean/oned/IntervalTest.java index 8dacfac0..1b52cebf 100644 --- a/commons-geometry-euclidean/src/test/java/org/apache/commons/geometry/euclidean/oned/IntervalTest.java +++ b/commons-geometry-euclidean/src/test/java/org/apache/commons/geometry/euclidean/oned/IntervalTest.java @@ -870,16 +870,6 @@ class IntervalTest { * @param max */ private static void checkInterval(final Interval interval, final double min, final double max) { - checkInterval(interval, min, max, TEST_PRECISION); - } - - /** Check that the given interval matches the arguments and is internally consistent. - * @param interval - * @param min - * @param max - * @param precision - */ - private static void checkInterval(final Interval interval, final double min, final double max, final Precision.DoubleEquivalence precision) { Assertions.assertEquals(min, interval.getMin(), TEST_EPS); Assertions.assertEquals(max, interval.getMax(), TEST_EPS); diff --git a/commons-geometry-euclidean/src/test/java/org/apache/commons/geometry/euclidean/oned/RegionBSPTree1DTest.java b/commons-geometry-euclidean/src/test/java/org/apache/commons/geometry/euclidean/oned/RegionBSPTree1DTest.java index 8e5464b9..e51efa1f 100644 --- a/commons-geometry-euclidean/src/test/java/org/apache/commons/geometry/euclidean/oned/RegionBSPTree1DTest.java +++ b/commons-geometry-euclidean/src/test/java/org/apache/commons/geometry/euclidean/oned/RegionBSPTree1DTest.java @@ -1221,10 +1221,6 @@ class RegionBSPTree1DTest { } private static void checkInterval(final Interval interval, final double min, final double max) { - checkInterval(interval, min, max, TEST_PRECISION); - } - - private static void checkInterval(final Interval interval, final double min, final double max, final Precision.DoubleEquivalence precision) { Assertions.assertEquals(min, interval.getMin(), TEST_EPS); Assertions.assertEquals(max, interval.getMax(), TEST_EPS); }