compilerplugins/clang/constparams.cxx | 8 -------- 1 file changed, 8 deletions(-)
New commits: commit 1ac8d90d84ac69c3617228fbfcb8789f295451d3 Author: Stephan Bergmann <sberg...@redhat.com> Date: Mon Aug 7 13:12:59 2017 +0200 -Werror=unused-function Change-Id: Ia98b64a5500b99c5a6f20c723d96d9c4686f3271 diff --git a/compilerplugins/clang/constparams.cxx b/compilerplugins/clang/constparams.cxx index b5256401890c..052e370c507d 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<const ParmVarDecl*> interestingSet; std::unordered_map<const ParmVarDecl*, const FunctionDecl*> 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); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits