No need to check both (identical) param_size() and getNumParams()
Change-Id: I481cfa8b0f4bb9cbc257d28f36c372fb7367f294
This commit is contained in:
parent
d12699bab3
commit
d4ee66c15e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user