From dcb9f942723c58c41f36c4d62738f46dd429f349 Mon Sep 17 00:00:00 2001 From: Martin Davis Date: Sat, 4 Jan 2025 11:47:48 -0800 Subject: [PATCH] Code cleanup --- .../jts/operation/overlayng/InputGeometry.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/modules/core/src/main/java/org/locationtech/jts/operation/overlayng/InputGeometry.java b/modules/core/src/main/java/org/locationtech/jts/operation/overlayng/InputGeometry.java index 0dd4c05b00..60f024b534 100644 --- a/modules/core/src/main/java/org/locationtech/jts/operation/overlayng/InputGeometry.java +++ b/modules/core/src/main/java/org/locationtech/jts/operation/overlayng/InputGeometry.java @@ -28,8 +28,6 @@ */ class InputGeometry { - //private static final PointLocator ptLocator = new PointLocator(); - private Geometry[] geom = new Geometry[2]; private PointOnGeometryLocator ptLocatorA; private PointOnGeometryLocator ptLocatorB; @@ -118,11 +116,7 @@ public int locatePointInArea(int geomIndex, Coordinate pt) { if ( isCollapsed[geomIndex]) return Location.EXTERIOR; - - //return ptLocator.locate(pt, geom[geomIndex]); - - //* // this check is required because IndexedPointInAreaLocator can't handle empty polygons if (getGeometry(geomIndex).isEmpty() || isCollapsed[geomIndex]) @@ -130,7 +124,6 @@ public int locatePointInArea(int geomIndex, Coordinate pt) { PointOnGeometryLocator ptLocator = getLocator(geomIndex); return ptLocator.locate(pt); - //*/ } private PointOnGeometryLocator getLocator(int geomIndex) { @@ -150,5 +143,4 @@ public void setCollapsed(int geomIndex, boolean isGeomCollapsed) { isCollapsed[geomIndex] = isGeomCollapsed; } - }