groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blackd...@apache.org
Subject [1/2] groovy git commit: GROOVY-8023: removing empty method
Date Thu, 26 Jan 2017 20:26:46 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_4_X 8cff58c2d -> a602a866d


GROOVY-8023: removing empty method


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

Branch: refs/heads/GROOVY_2_4_X
Commit: a602a866d9e60bf2fdb4364bbeaad6d3aab5b20f
Parents: c29f252
Author: Jochen Theodorou <blackdrag@gmx.org>
Authored: Thu Jan 26 21:03:42 2017 +0100
Committer: Jochen Theodorou <blackdrag@gmx.org>
Committed: Thu Jan 26 21:16:08 2017 +0100

----------------------------------------------------------------------
 .../transform/trait/SuperCallTraitTransformer.java      | 12 ------------
 1 file changed, 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/a602a866/src/main/org/codehaus/groovy/transform/trait/SuperCallTraitTransformer.java
----------------------------------------------------------------------
diff --git a/src/main/org/codehaus/groovy/transform/trait/SuperCallTraitTransformer.java b/src/main/org/codehaus/groovy/transform/trait/SuperCallTraitTransformer.java
index 6ebc5f2..f3d35d8 100644
--- a/src/main/org/codehaus/groovy/transform/trait/SuperCallTraitTransformer.java
+++ b/src/main/org/codehaus/groovy/transform/trait/SuperCallTraitTransformer.java
@@ -141,18 +141,6 @@ class SuperCallTraitTransformer extends ClassCodeExpressionTransformer
{
         return super.transform(exp);
     }
 
-    private Expression transformPropertyExpression(final PropertyExpression expression) {
-        Expression objectExpression = expression.getObjectExpression();
-        ClassNode type = objectExpression.getType();
-        if (objectExpression instanceof ClassExpression) {
-            if (Traits.isTrait(type) && "super".equals(expression.getPropertyAsString()))
{
-                // SomeTrait.super --> annotate to recognize later
-                expression.putNodeMetaData(SuperCallTraitTransformer.class, type);
-            }
-        }
-        return super.transform(expression);
-    }
-
     private boolean isTraitSuperPropertyExpression(Expression exp) {
         if (exp instanceof PropertyExpression) {
             PropertyExpression pexp = (PropertyExpression) exp;


Mime
View raw message