From 642121c86bf2d613db82f9248024ffbf785c780c Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Fri, 26 Jun 2020 11:11:53 +0200 Subject: [PATCH] Fix compile error --- .../pmd/lang/swift/AbstractSwiftRule.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pmd-swift/src/main/java/net/sourceforge/pmd/lang/swift/AbstractSwiftRule.java b/pmd-swift/src/main/java/net/sourceforge/pmd/lang/swift/AbstractSwiftRule.java index 8f30d7e816..11199a0239 100644 --- a/pmd-swift/src/main/java/net/sourceforge/pmd/lang/swift/AbstractSwiftRule.java +++ b/pmd-swift/src/main/java/net/sourceforge/pmd/lang/swift/AbstractSwiftRule.java @@ -6,9 +6,7 @@ package net.sourceforge.pmd.lang.swift; import net.sourceforge.pmd.RuleContext; import net.sourceforge.pmd.lang.ast.AstVisitor; -import net.sourceforge.pmd.lang.ast.Node; import net.sourceforge.pmd.lang.ast.impl.antlr4.AntlrBaseRule; -import net.sourceforge.pmd.lang.swift.ast.SwiftInnerNode; public abstract class AbstractSwiftRule extends AntlrBaseRule { @@ -16,16 +14,6 @@ public abstract class AbstractSwiftRule extends AntlrBaseRule { // inheritance constructor } - @Override - public void addRuleChainVisit(Class nodeClass) { - // note that this is made unnecessary by #2490 - if (SwiftInnerNode.class.isAssignableFrom(nodeClass)) { - addRuleChainVisit(nodeClass.getSimpleName().substring("Sw".length())); - return; - } - super.addRuleChainVisit(nodeClass); - } - @Override public abstract AstVisitor buildVisitor(); }