Apache Lucene open-source search software
Remove the Now Unused Class `pointInPolygon`. (#12159)
Marcusdfd9e0fe9796
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txtindex fafb9b093af..62b91852e5d 100644--- a/lucene/CHANGES.txt+++ b/lucene/CHANGES.txt@@ -144,6 +144,8 @@ Improvements* GITHUB#12175: Remove SortedSetDocValuesSetQuery in favor of TermInSetQuery with DocValuesRewriteMethod. (Greg Miller)+* GITHUB#12166: Remove the now unused class pointInPolygon. (Marcus Eagan via Christine Poerschke and Nick Knize)+Optimizations---------------------diff --git a/lucene/core/src/java/org/apache/lucene/geo/Tessellator.java b/lucene/core/src/java/org/apache/lucene/geo/Tessellator.javaindex 5179037fa54..5d5835728e6 100644--- a/lucene/core/src/java/org/apache/lucene/geo/Tessellator.java+++ b/lucene/core/src/java/org/apache/lucene/geo/Tessellator.java@@ -1438,21 +1438,6 @@ public final class Tessellator {}}- /**- * Brute force compute if a point is in the polygon by traversing entire triangulation todo: speed- * this up using either binary tree or prefix coding (filtering by bounding box of triangle)- */- public static final boolean pointInPolygon(- final List<Triangle> tessellation, double lat, double lon) {- // each triangle- for (int i = 0; i < tessellation.size(); ++i) {- if (tessellation.get(i).containsPoint(lat, lon)) {- return true;- }- }- return false;- }-/*** Implementation of this interface will receive calls with internal data at each step of the* triangulation algorithm. This is of use for debugging complex cases, as well as gaining insight