No need to check both (identical) param_size() and getNumParams()

Change-Id: I481cfa8b0f4bb9cbc257d28f36c372fb7367f294
This commit is contained in:
Stephan Bergmann 2017-11-10 08:51:43 +01:00
parent d12699bab3
commit d4ee66c15e

View File

@ -410,8 +410,6 @@ const CXXMethodDecl* UnnecessaryOverride::findOverriddenOrSimilarMethodInSupercl
{
continue;
}
if (methodDecl->param_size() != baseMethod->param_size())
continue;
if (methodDecl->getNumParams() != baseMethod->getNumParams())
continue;
bool bParamsMatch = true;