summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-11-10 08:51:43 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-11-10 08:51:43 +0100
commitd4ee66c15e8c57f2de54d1306128f6546dfb6e8d (patch)
tree97607ac2cf385e0e170d63103ce1be88efa36b04 /compilerplugins
parentd12699bab3eab6e29f0667f042148e5634c9efe4 (diff)
No need to check both (identical) param_size() and getNumParams()
Change-Id: I481cfa8b0f4bb9cbc257d28f36c372fb7367f294
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/unnecessaryoverride.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/compilerplugins/clang/unnecessaryoverride.cxx b/compilerplugins/clang/unnecessaryoverride.cxx
index eb3dabb26f60..7a0431a2bf44 100644
--- a/compilerplugins/clang/unnecessaryoverride.cxx
+++ b/compilerplugins/clang/unnecessaryoverride.cxx
@@ -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;