From 1ac8d90d84ac69c3617228fbfcb8789f295451d3 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 7 Aug 2017 13:12:59 +0200 Subject: -Werror=unused-function Change-Id: Ia98b64a5500b99c5a6f20c723d96d9c4686f3271 --- compilerplugins/clang/constparams.cxx | 8 -------- 1 file changed, 8 deletions(-) (limited to 'compilerplugins/clang') diff --git a/compilerplugins/clang/constparams.cxx b/compilerplugins/clang/constparams.cxx index b5256401890c3..052e370c507dc 100644 --- a/compilerplugins/clang/constparams.cxx +++ b/compilerplugins/clang/constparams.cxx @@ -83,7 +83,6 @@ public: private: bool checkIfCanBeConst(const Stmt*, const ParmVarDecl*); bool isPointerOrReferenceToConst(const QualType& qt); - StringRef getFilename(const SourceLocation& loc); std::unordered_set interestingSet; std::unordered_map parmToFunction; @@ -488,13 +487,6 @@ bool ConstParams::isPointerOrReferenceToConst(const QualType& qt) { return false; } -StringRef ConstParams::getFilename(const SourceLocation& loc) -{ - SourceLocation spellingLocation = compiler.getSourceManager().getSpellingLoc(loc); - StringRef name { compiler.getSourceManager().getFilename(spellingLocation) }; - return name; -} - loplugin::Plugin::Registration< ConstParams > X("constparams", false); } -- cgit