groovy git commit: Cleanup code

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

groovy git commit: Cleanup code

Daniel.Sun
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X 1262ce33a -> 18cdd1974


Cleanup code

(cherry picked from commit 1667ed6)


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/18cdd197
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/18cdd197
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/18cdd197

Branch: refs/heads/GROOVY_2_6_X
Commit: 18cdd1974ef69a63823ecda072aa0317be0ffd4f
Parents: 1262ce3
Author: sunlan <[hidden email]>
Authored: Thu Jul 20 08:52:40 2017 +0800
Committer: sunlan <[hidden email]>
Committed: Thu Jul 20 08:53:30 2017 +0800

----------------------------------------------------------------------
 .../org/apache/groovy/parser/antlr4/Antlr4ParserPlugin.java  | 8 --------
 1 file changed, 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/18cdd197/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/Antlr4ParserPlugin.java
----------------------------------------------------------------------
diff --git a/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/Antlr4ParserPlugin.java b/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/Antlr4ParserPlugin.java
index 0d7136c..4ae7dca 100644
--- a/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/Antlr4ParserPlugin.java
+++ b/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/Antlr4ParserPlugin.java
@@ -47,14 +47,6 @@ public class Antlr4ParserPlugin implements ParserPlugin {
             return this.moduleNode;
         }
 
-        try {
-            if (null == sourceUnit.getSource().getReader()) {
-                return moduleNode;
-            }
-        } catch (IOException e) {
-            return moduleNode;
-        }
-
         AstBuilder builder = new AstBuilder(sourceUnit, classLoader);
         this.moduleNode = builder.buildAST();
 

Apache Groovy committer & PMC member

Blog: http://blog.sunlan.me
Twitter: @daniel_sun