From b1e31e59d4452dd584b557e3c0199c799269945e Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 5 Jul 2018 00:33:03 +0000 Subject: [PATCH] [Index] Remove unused index::IndexDataConsumer::_anchor() It was supposed to serve as a key function, but it was invalid as it was not the first out-of-line non-pure virtual function. llvm-svn: 336300 --- clang/include/clang/Index/IndexDataConsumer.h | 3 --- clang/lib/Index/IndexingAction.cpp | 2 -- 2 files changed, 5 deletions(-) diff --git a/clang/include/clang/Index/IndexDataConsumer.h b/clang/include/clang/Index/IndexDataConsumer.h index 53cdea9..8115b04 100644 --- a/clang/include/clang/Index/IndexDataConsumer.h +++ b/clang/include/clang/Index/IndexDataConsumer.h @@ -54,9 +54,6 @@ public: SymbolRoleSet Roles, SourceLocation Loc); virtual void finish() {} - -private: - virtual void _anchor(); }; } // namespace index diff --git a/clang/lib/Index/IndexingAction.cpp b/clang/lib/Index/IndexingAction.cpp index c8f6580..e378a09 100644 --- a/clang/lib/Index/IndexingAction.cpp +++ b/clang/lib/Index/IndexingAction.cpp @@ -19,8 +19,6 @@ using namespace clang; using namespace clang::index; -void IndexDataConsumer::_anchor() {} - bool IndexDataConsumer::handleDeclOccurence(const Decl *D, SymbolRoleSet Roles, ArrayRef Relations, SourceLocation Loc, -- 2.7.4