groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [groovy] 04/05: minor refactor: remove dead code
Date Fri, 17 May 2019 02:45:13 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit d0b8e9178e3690c64f841dfcd6da89c69def7803
Author: Paul King <paulk@asert.com.au>
AuthorDate: Fri May 17 11:57:14 2019 +1000

    minor refactor: remove dead code
---
 .../java/org/codehaus/groovy/control/CompilationUnit.java     | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/src/main/java/org/codehaus/groovy/control/CompilationUnit.java b/src/main/java/org/codehaus/groovy/control/CompilationUnit.java
index b9dbaec..205431c 100644
--- a/src/main/java/org/codehaus/groovy/control/CompilationUnit.java
+++ b/src/main/java/org/codehaus/groovy/control/CompilationUnit.java
@@ -342,20 +342,9 @@ public class CompilationUnit extends ProcessingUnit {
     public void configure(CompilerConfiguration configuration) {
         super.configure(configuration);
         this.debug = configuration.getDebug();
-
-        if (!this.configured && this.classLoader instanceof GroovyClassLoader) {
-            appendCompilerConfigurationClasspathToClassLoader(configuration, (GroovyClassLoader)
this.classLoader);
-        }
-
         this.configured = true;
     }
 
-    private void appendCompilerConfigurationClasspathToClassLoader(CompilerConfiguration
configuration, GroovyClassLoader classLoader) {
-        /*for (Iterator iterator = configuration.getClasspath().iterator(); iterator.hasNext();
) {
-            classLoader.addClasspath((String) iterator.next());
-        }*/
-    }
-
     /**
      * Returns the CompileUnit that roots our AST.
      */


Mime
View raw message