From 2c319798289907fa33f165df62cf5b7dcc41f2b0 Mon Sep 17 00:00:00 2001 From: Linus Wallin Date: Sun, 3 Mar 2024 18:15:40 +0100 Subject: [PATCH] refactor: removes unnecessary if statement Removes if statement which didn't change the outcome of the program. --- src/main/java/com/esri/core/geometry/Geohash.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/com/esri/core/geometry/Geohash.java b/src/main/java/com/esri/core/geometry/Geohash.java index 5e1b9c37..394be6aa 100644 --- a/src/main/java/com/esri/core/geometry/Geohash.java +++ b/src/main/java/com/esri/core/geometry/Geohash.java @@ -188,10 +188,6 @@ public static String[] coveringGeohash(Envelope2D envelope) { return new String[] {""}; } String[] geoHash = {containingGeohash(envelope)}; - if (xmin == xmax && ymin == ymax) { - Point2D p = new Point2D(xmax, ymax); - return geoHash; - } if (geoHash[0] != ""){ return geoHash; }