Kaydet (Commit) d4ee66c1 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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

Change-Id: I481cfa8b0f4bb9cbc257d28f36c372fb7367f294
üst d12699ba
...@@ -410,8 +410,6 @@ const CXXMethodDecl* UnnecessaryOverride::findOverriddenOrSimilarMethodInSupercl ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment