groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [groovy] branch master updated: AsmClassGenerator: Remove private field genericParameterNames which is never accessed.
Date Sun, 29 Dec 2019 16:40:40 GMT
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 3df4158  AsmClassGenerator: Remove private field genericParameterNames which is never
accessed.
3df4158 is described below

commit 3df415868923edfe73f8f15cc6bdbe7f954bb944
Author: Pascal Schumacher <pascalschumacher@gmx.net>
AuthorDate: Sun Dec 29 15:49:07 2019 +0100

    AsmClassGenerator: Remove private field genericParameterNames which is never accessed.
---
 src/main/java/org/codehaus/groovy/classgen/AsmClassGenerator.java | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/main/java/org/codehaus/groovy/classgen/AsmClassGenerator.java b/src/main/java/org/codehaus/groovy/classgen/AsmClassGenerator.java
index 24ef1b8..9d40e88 100644
--- a/src/main/java/org/codehaus/groovy/classgen/AsmClassGenerator.java
+++ b/src/main/java/org/codehaus/groovy/classgen/AsmClassGenerator.java
@@ -158,7 +158,6 @@ public class AsmClassGenerator extends ClassGenerator {
     private static final MethodCaller createPojoWrapperMethod = MethodCaller.newStatic(ScriptBytecodeAdapter.class,
"createPojoWrapper");
     private static final MethodCaller createGroovyObjectWrapperMethod = MethodCaller.newStatic(ScriptBytecodeAdapter.class,
"createGroovyObjectWrapper");
 
-    private final Map<String, GenericsType> genericParameterNames = new HashMap<>();
     private final Map<String,ClassNode> referencedClasses = new HashMap<>();
     private boolean passingParams;
 
@@ -366,8 +365,6 @@ public class AsmClassGenerator extends ClassGenerator {
     }
 
     public void visitGenericType(final GenericsType genericsType) {
-        ClassNode type = genericsType.getType();
-        genericParameterNames.put(type.getName(), genericsType);
     }
 
     @Override


Mime
View raw message