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 86d38ae92ad5798756c02dbf279cb1f6b24a4281
Author: Alex Herbert <[email protected]>
AuthorDate: Mon Sep 22 14:20:21 2025 +0100

    pmd fix: remove unused private field
---
 .../commons/geometry/core/internal/AbstractBucketPointMap.java      | 6 ------
 1 file changed, 6 deletions(-)

diff --git 
a/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/internal/AbstractBucketPointMap.java
 
b/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/internal/AbstractBucketPointMap.java
index ba2f695f..bd010e0a 100644
--- 
a/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/internal/AbstractBucketPointMap.java
+++ 
b/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/internal/AbstractBucketPointMap.java
@@ -1261,9 +1261,6 @@ public abstract class AbstractBucketPointMap<P extends 
Point<P>, V>
     private final class EntryIterator
         implements Iterator<Entry<P, V>> {
 
-        /** Size of the owning map. */
-        private int size;
-
         /** Iterator that produces the next entry to be returned. */
         private Iterator<Entry<P, V>> nextEntryIterator;
 
@@ -1276,8 +1273,6 @@ public abstract class AbstractBucketPointMap<P extends 
Point<P>, V>
         /** Simple constructor.
          */
         EntryIterator() {
-            this.size = AbstractBucketPointMap.this.size();
-
             updateExpectedVersion();
         }
 
@@ -1316,7 +1311,6 @@ public abstract class AbstractBucketPointMap<P extends 
Point<P>, V>
 
             nextEntryIterator.remove();
             --nextIdx;
-            --size;
 
             updateExpectedVersion();
         }

Reply via email to