summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/unreffun.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/unreffun.cxx')
-rw-r--r--compilerplugins/clang/unreffun.cxx22
1 files changed, 0 insertions, 22 deletions
diff --git a/compilerplugins/clang/unreffun.cxx b/compilerplugins/clang/unreffun.cxx
index d49ad2917582..eece97f17436 100644
--- a/compilerplugins/clang/unreffun.cxx
+++ b/compilerplugins/clang/unreffun.cxx
@@ -53,9 +53,6 @@ public:
{ TraverseDecl(compiler.getASTContext().getTranslationUnitDecl()); }
bool VisitFunctionDecl(FunctionDecl const * decl);
-
-private:
- bool isInUnoIncludeFile(SourceLocation spellingLocation) const;
};
bool UnrefFun::VisitFunctionDecl(FunctionDecl const * decl) {
@@ -122,25 +119,6 @@ bool UnrefFun::VisitFunctionDecl(FunctionDecl const * decl) {
return true;
}
-bool UnrefFun::isInUnoIncludeFile(SourceLocation spellingLocation) const {
- StringRef name {
- compiler.getSourceManager().getFilename(spellingLocation) };
- return compat::isInMainFile(compiler.getSourceManager(), spellingLocation)
- ? (name == SRCDIR "/cppu/source/cppu/compat.cxx"
- || name == SRCDIR "/cppuhelper/source/compat.cxx"
- || name == SRCDIR "/sal/osl/all/compat.cxx")
- : (name.startswith(SRCDIR "/include/com/")
- || name.startswith(SRCDIR "/include/cppu/")
- || name.startswith(SRCDIR "/include/cppuhelper/")
- || name.startswith(SRCDIR "/include/osl/")
- || name.startswith(SRCDIR "/include/rtl/")
- || name.startswith(SRCDIR "/include/sal/")
- || name.startswith(SRCDIR "/include/salhelper/")
- || name.startswith(SRCDIR "/include/systools/")
- || name.startswith(SRCDIR "/include/typelib/")
- || name.startswith(SRCDIR "/include/uno/"));
-}
-
loplugin::Plugin::Registration<UnrefFun> X("unreffun");
}