1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-16 12:45:41 +02:00

Fix warnings.

This commit is contained in:
Markus Schorn 2008-07-25 05:10:13 +00:00
parent d568b210b2
commit ccecd21ea7

View file

@ -30,7 +30,6 @@ import org.eclipse.cdt.core.dom.ast.IType;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTBinaryExpression; import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTBinaryExpression;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTNewExpression; import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTNewExpression;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTSimpleDeclSpecifier; import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTSimpleDeclSpecifier;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPFunction;
import org.eclipse.cdt.core.dom.rewrite.ASTRewrite; import org.eclipse.cdt.core.dom.rewrite.ASTRewrite;
import org.eclipse.cdt.internal.core.dom.parser.cpp.CPPASTFieldReference; import org.eclipse.cdt.internal.core.dom.parser.cpp.CPPASTFieldReference;
@ -210,8 +209,6 @@ public class ExtractExpression extends ExtractedFunctionConstructionHelper {
IBinding binding = functionName.resolveBinding(); IBinding binding = functionName.resolveBinding();
if (binding instanceof CPPFunction) { if (binding instanceof CPPFunction) {
CPPFunction function = (CPPFunction) binding; CPPFunction function = (CPPFunction) binding;
if (function != null) {
if(function.getDefinition() != null) { if(function.getDefinition() != null) {
IASTNode parent = function.getDefinition().getParent(); IASTNode parent = function.getDefinition().getParent();
if(parent instanceof CPPASTFunctionDefinition) { if(parent instanceof CPPASTFunctionDefinition) {
@ -227,7 +224,6 @@ public class ExtractExpression extends ExtractedFunctionConstructionHelper {
} }
} }
} }
}
return false; return false;
} }