From: Fangrui Song Date: Thu, 5 Jul 2018 00:33:03 +0000 (+0000) Subject: [Index] Remove unused index::IndexDataConsumer::_anchor() X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=90dccc4bb943ae29d4d0b146ad2adfdaed1da475;p=clang [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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@336300 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Index/IndexDataConsumer.h b/include/clang/Index/IndexDataConsumer.h index 53cdea9183..8115b04af6 100644 --- a/include/clang/Index/IndexDataConsumer.h +++ b/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/lib/Index/IndexingAction.cpp b/lib/Index/IndexingAction.cpp index c8f65804b0..e378a092be 100644 --- a/lib/Index/IndexingAction.cpp +++ b/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,