diff --git a/compilerplugins/clang/unusedmethods.cxx b/compilerplugins/clang/unusedmethods.cxx index e33bb0c01c0a..1a707de5893a 100644 --- a/compilerplugins/clang/unusedmethods.cxx +++ b/compilerplugins/clang/unusedmethods.cxx @@ -118,7 +118,6 @@ public: bool TraverseFunctionDecl( FunctionDecl* ); bool TraverseCXXMethodDecl( CXXMethodDecl* ); bool TraverseCXXConversionDecl( CXXConversionDecl* ); - bool TraverseCXXDeductionGuideDecl( CXXDeductionGuideDecl* ); private: void logCallToRootMethods(const FunctionDecl* functionDecl, std::set& funcSet); MyFuncInfo niceName(const FunctionDecl* functionDecl); @@ -388,14 +387,6 @@ bool UnusedMethods::TraverseCXXConversionDecl(CXXConversionDecl* f) currentFunctionDecl = copy; return ret; } -bool UnusedMethods::TraverseCXXDeductionGuideDecl(CXXDeductionGuideDecl* f) -{ - auto copy = currentFunctionDecl; - currentFunctionDecl = f; - bool ret = RecursiveASTVisitor::TraverseCXXDeductionGuideDecl(f); - currentFunctionDecl = copy; - return ret; -} loplugin::Plugin::Registration< UnusedMethods > X("unusedmethods", false);