diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-11-10 08:51:43 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-11-10 08:51:43 +0100 |
commit | d4ee66c15e8c57f2de54d1306128f6546dfb6e8d (patch) | |
tree | 97607ac2cf385e0e170d63103ce1be88efa36b04 /compilerplugins | |
parent | d12699bab3eab6e29f0667f042148e5634c9efe4 (diff) |
No need to check both (identical) param_size() and getNumParams()
Change-Id: I481cfa8b0f4bb9cbc257d28f36c372fb7367f294
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/unnecessaryoverride.cxx | 2 |
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; |