groovy-commits mailing list archives

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

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

commit f306f9f0e818ae9aaf48d94acc9a40d127c5f7b1
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 26e58bf..0aa7372 100644
--- a/src/main/java/org/codehaus/groovy/control/CompilationUnit.java
+++ b/src/main/java/org/codehaus/groovy/control/CompilationUnit.java
@@ -336,20 +336,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