[clang-tools-extra] r366468 - [clangd] Remove dead code from BackgroundIndex

Kadir Cetinkaya via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 18 10:25:57 PDT 2019


Author: kadircet
Date: Thu Jul 18 10:25:57 2019
New Revision: 366468

URL: http://llvm.org/viewvc/llvm-project?rev=366468&view=rev
Log:
[clangd] Remove dead code from BackgroundIndex

Modified:
    clang-tools-extra/trunk/clangd/index/Background.cpp

Modified: clang-tools-extra/trunk/clangd/index/Background.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/index/Background.cpp?rev=366468&r1=366467&r2=366468&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/index/Background.cpp (original)
+++ clang-tools-extra/trunk/clangd/index/Background.cpp Thu Jul 18 10:25:57 2019
@@ -509,9 +509,6 @@ BackgroundIndex::loadProject(std::vector
     auto Cmd = CDB.getCompileCommand(TU);
     if (!Cmd)
       continue;
-    std::string ProjectRoot;
-    if (auto PI = CDB.getProjectInfo(TU))
-      ProjectRoot = std::move(PI->SourceRoot);
     NeedsReIndexing.emplace_back(std::move(*Cmd));
   }
 




More information about the cfe-commits mailing list