From d4ee66c15e8c57f2de54d1306128f6546dfb6e8d Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 10 Nov 2017 08:51:43 +0100 Subject: No need to check both (identical) param_size() and getNumParams() Change-Id: I481cfa8b0f4bb9cbc257d28f36c372fb7367f294 --- compilerplugins/clang/unnecessaryoverride.cxx | 2 -- 1 file changed, 2 deletions(-) (limited to 'compilerplugins') 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; -- cgit v1.2.3