From fba6f4c2eb52479e306e2e524a23f97d3b5cc01f Mon Sep 17 00:00:00 2001 From: Tom Copeland Date: Mon, 27 Nov 2006 04:17:16 +0000 Subject: [PATCH] ASTModifiers has been #void for a while, and ASTMethodDeclarationLookahead is a lookahead-only production so there's no need to generate an AST node for it git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4831 51baf565-9d33-0410-a72c-fc3788e3496d --- .../ast/ASTMethodDeclarationLookahead.java | 21 ------------------- .../net/sourceforge/pmd/ast/ASTModifiers.java | 21 ------------------- .../pmd/ast/JavaParserVisitorAdapter.java | 4 ---- 3 files changed, 46 deletions(-) delete mode 100644 pmd/src/net/sourceforge/pmd/ast/ASTMethodDeclarationLookahead.java delete mode 100644 pmd/src/net/sourceforge/pmd/ast/ASTModifiers.java diff --git a/pmd/src/net/sourceforge/pmd/ast/ASTMethodDeclarationLookahead.java b/pmd/src/net/sourceforge/pmd/ast/ASTMethodDeclarationLookahead.java deleted file mode 100644 index 88c64978b0..0000000000 --- a/pmd/src/net/sourceforge/pmd/ast/ASTMethodDeclarationLookahead.java +++ /dev/null @@ -1,21 +0,0 @@ -/* Generated By:JJTree: Do not edit this line. ASTMethodDeclarationLookahead.java */ - -package net.sourceforge.pmd.ast; - -public class ASTMethodDeclarationLookahead extends SimpleJavaNode { - public ASTMethodDeclarationLookahead(int id) { - super(id); - } - - public ASTMethodDeclarationLookahead(JavaParser p, int id) { - super(p, id); - } - - - /** - * Accept the visitor. * - */ - public Object jjtAccept(JavaParserVisitor visitor, Object data) { - return visitor.visit(this, data); - } -} diff --git a/pmd/src/net/sourceforge/pmd/ast/ASTModifiers.java b/pmd/src/net/sourceforge/pmd/ast/ASTModifiers.java deleted file mode 100644 index 6419d7a2db..0000000000 --- a/pmd/src/net/sourceforge/pmd/ast/ASTModifiers.java +++ /dev/null @@ -1,21 +0,0 @@ -/* Generated By:JJTree: Do not edit this line. ASTModifiers.java */ - -package net.sourceforge.pmd.ast; - -public class ASTModifiers extends SimpleJavaNode { - - public ASTModifiers(int id) { - super(id); - } - - public ASTModifiers(JavaParser p, int id) { - super(p, id); - } - - /** - * Accept the visitor. * - */ - public Object jjtAccept(JavaParserVisitor visitor, Object data) { - return visitor.visit(this, data); - } -} diff --git a/pmd/src/net/sourceforge/pmd/ast/JavaParserVisitorAdapter.java b/pmd/src/net/sourceforge/pmd/ast/JavaParserVisitorAdapter.java index 94e6e70110..c05457647e 100644 --- a/pmd/src/net/sourceforge/pmd/ast/JavaParserVisitorAdapter.java +++ b/pmd/src/net/sourceforge/pmd/ast/JavaParserVisitorAdapter.java @@ -155,10 +155,6 @@ public class JavaParserVisitorAdapter implements JavaParserVisitor { return visit((SimpleJavaNode) node, data); } - public Object visit(ASTMethodDeclarationLookahead node, Object data) { - return visit((SimpleJavaNode) node, data); - } - public Object visit(ASTFieldDeclaration node, Object data) { return visit((SimpleJavaNode) node, data); }