No need to check both (identical) param_size() and getNumParams()
Change-Id: I481cfa8b0f4bb9cbc257d28f36c372fb7367f294
This commit is contained in:
@@ -410,8 +410,6 @@ const CXXMethodDecl* UnnecessaryOverride::findOverriddenOrSimilarMethodInSupercl
|
|||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (methodDecl->param_size() != baseMethod->param_size())
|
|
||||||
continue;
|
|
||||||
if (methodDecl->getNumParams() != baseMethod->getNumParams())
|
if (methodDecl->getNumParams() != baseMethod->getNumParams())
|
||||||
continue;
|
continue;
|
||||||
bool bParamsMatch = true;
|
bool bParamsMatch = true;
|
||||||
|
Reference in New Issue
Block a user