[Libreoffice-commits] core.git: compilerplugins/clang
Stephan Bergmann
sbergman at redhat.com
Tue Jun 20 12:25:48 UTC 2017
compilerplugins/clang/oncevar.cxx | 9 ---------
1 file changed, 9 deletions(-)
New commits:
commit 5f63d2c599a00f9753cb519b28a3116aa213dcc0
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Jun 20 14:25:08 2017 +0200
-Werror=unused-function
Change-Id: Iecc7d68ad18e90bf84d358af92194c230efc2671
diff --git a/compilerplugins/clang/oncevar.cxx b/compilerplugins/clang/oncevar.cxx
index d6c73e32b84b..9d03512012c1 100644
--- a/compilerplugins/clang/oncevar.cxx
+++ b/compilerplugins/clang/oncevar.cxx
@@ -91,21 +91,12 @@ public:
bool VisitVarDecl( const VarDecl* );
private:
- StringRef getFilename(SourceLocation loc);
-
std::unordered_set<VarDecl const *> maVarDeclSet;
std::unordered_set<VarDecl const *> maVarDeclToIgnoreSet;
std::unordered_map<VarDecl const *, int> maVarUsesMap;
std::unordered_map<VarDecl const *, SourceRange> maVarUseSourceRangeMap;
};
-StringRef OnceVar::getFilename(SourceLocation loc)
-{
- SourceLocation spellingLocation = compiler.getSourceManager().getSpellingLoc(loc);
- StringRef name { compiler.getSourceManager().getFilename(spellingLocation) };
- return name;
-}
-
bool OnceVar::VisitVarDecl( const VarDecl* varDecl )
{
if (ignoreLocation(varDecl)) {
More information about the Libreoffice-commits
mailing list