1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 17:26:01 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2011-10-23 21:50:39 -07:00
parent e65e1eabc1
commit b7de8668c6
2 changed files with 21 additions and 24 deletions

View file

@ -21,7 +21,6 @@ import org.eclipse.cdt.internal.core.dom.parser.ASTNode;
* @author jcamelon
*/
public class CASTTypeId extends ASTNode implements IASTTypeId {
private IASTDeclSpecifier declSpecifier;
private IASTDeclarator declarator;
@ -72,7 +71,6 @@ public class CASTTypeId extends ASTNode implements IASTTypeId {
abstractDeclarator.setParent(this);
abstractDeclarator.setPropertyInParent(ABSTRACT_DECLARATOR);
}
}
@Override
@ -85,8 +83,8 @@ public class CASTTypeId extends ASTNode implements IASTTypeId {
}
}
if( declSpecifier != null ) if( !declSpecifier.accept( action ) ) return false;
if( declarator != null ) if( !declarator.accept( action ) ) return false;
if (declSpecifier != null && !declSpecifier.accept(action)) return false;
if (declarator != null && !declarator.accept(action)) return false;
if (action.shouldVisitTypeIds) {
switch (action.leave(this)) {

View file

@ -184,7 +184,6 @@ public class CPPTemplates {
return instantiatePartialSpecialization((ICPPClassTemplatePartialSpecialization) template, arguments, isDefinition, null);
}
final ICPPTemplateParameter[] parameters= template.getTemplateParameters();
final int numArgs = arguments.length;
final int numParams= parameters.length;