[Libreoffice-commits] core.git: compilerplugins/clang
Stephan Bergmann
sbergman at redhat.com
Mon Aug 7 11:14:06 UTC 2017
compilerplugins/clang/constparams.cxx | 8 --------
1 file changed, 8 deletions(-)
New commits:
commit 1ac8d90d84ac69c3617228fbfcb8789f295451d3
Author: Stephan Bergmann <sbergman at 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);
}
More information about the Libreoffice-commits
mailing list