You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2021/07/19 15:01:17 UTC

[groovy] branch master updated: Trivial refactoring: remove unused code

This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new 586defa  Trivial refactoring: remove unused code
586defa is described below

commit 586defa3fdb8a5097d16796922f666c9ffea00a0
Author: Daniel Sun <su...@apache.org>
AuthorDate: Mon Jul 19 23:01:10 2021 +0800

    Trivial refactoring: remove unused code
---
 .../groovy/ginq/provider/collection/runtime/QueryableCollection.java  | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/QueryableCollection.java b/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/QueryableCollection.java
index d3ea174..c0db365 100644
--- a/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/QueryableCollection.java
+++ b/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/QueryableCollection.java
@@ -131,9 +131,6 @@ class QueryableCollection<T> implements Queryable<T>, Serializable {
 
     private static final class Bucket<E> extends ArrayList<E> {
         private static final long serialVersionUID = 2813676753531316403L;
-        Bucket() {
-            this(HASHTABLE_BUCKET_INITIAL_SIZE);
-        }
         Bucket(int initialCapacity) {
             super(initialCapacity);
         }
@@ -158,7 +155,6 @@ class QueryableCollection<T> implements Queryable<T>, Serializable {
     }
 
     private static final int HASHTABLE_MAX_SIZE = SystemUtil.getIntegerSafe("groovy.ginq.hashtable.max.size", 128);
-    private static final int HASHTABLE_BUCKET_INITIAL_SIZE = SystemUtil.getIntegerSafe("groovy.ginq.hashtable.bucket.initial.size", 16);
     private static Integer hash(Object obj) {
         return Integer.remainderUnsigned(Objects.hash(obj), HASHTABLE_MAX_SIZE); // mod `HASHTABLE_MAX_SIZE` to limit the size of hash table
     }