You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2020/02/23 08:27:42 UTC

[groovy] branch GROOVY_3_0_X updated: remove unused code

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

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


The following commit(s) were added to refs/heads/GROOVY_3_0_X by this push:
     new 3c7ef6f  remove unused code
3c7ef6f is described below

commit 3c7ef6f00321b0f2d6b250dd81375587aaafa980
Author: Paul King <pa...@asert.com.au>
AuthorDate: Sun Feb 23 18:25:36 2020 +1000

    remove unused code
---
 .../org/codehaus/groovy/runtime/callsite/CallSiteGenerator.java     | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/main/java/org/codehaus/groovy/runtime/callsite/CallSiteGenerator.java b/src/main/java/org/codehaus/groovy/runtime/callsite/CallSiteGenerator.java
index b9cbbf7..163b3fc 100644
--- a/src/main/java/org/codehaus/groovy/runtime/callsite/CallSiteGenerator.java
+++ b/src/main/java/org/codehaus/groovy/runtime/callsite/CallSiteGenerator.java
@@ -154,11 +154,7 @@ public class CallSiteGenerator {
     }
 
     private static void classHeader(ClassWriter cw, String internalName, String superName) {
-        if (VMPluginFactory.getPlugin().getVersion()>=8) {
-            cw.visit(Opcodes.V1_8, Opcodes.ACC_PUBLIC | Opcodes.ACC_SYNTHETIC, internalName, null, superName, null);
-        } else {
-            cw.visit(Opcodes.V1_4, Opcodes.ACC_PUBLIC | Opcodes.ACC_SYNTHETIC, internalName, null, superName, null);
-        }
+        cw.visit(Opcodes.V1_8, Opcodes.ACC_PUBLIC | Opcodes.ACC_SYNTHETIC, internalName, null, superName, null);
     }
 
     public static byte[] genPogoMetaMethodSite(CachedMethod cachedMethod, ClassWriter cw, String name) {