From 0f0e679edb6fb4e686ab2b2fa30bad9306b5398c Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 21 Apr 2020 21:43:56 -0700 Subject: [PATCH] indexer: delete redundant consumeFile --- src/indexer.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/indexer.cc b/src/indexer.cc index 014a7e8b..dd727a72 100644 --- a/src/indexer.cc +++ b/src/indexer.cc @@ -675,11 +675,7 @@ public: public: IndexDataConsumer(IndexParam ¶m) : param(param) {} - void initialize(ASTContext &ctx) override { - this->ctx = param.ctx = &ctx; - SourceManager &sm = ctx.getSourceManager(); - (void)param.consumeFile(*sm.getFileEntryForID(sm.getMainFileID())); - } + void initialize(ASTContext &ctx) override { this->ctx = param.ctx = &ctx; } #if LLVM_VERSION_MAJOR < 10 // llvmorg-10-init-12036-g3b9715cb219 # define handleDeclOccurrence handleDeclOccurence #endif