[clangd] Remove dead code from BackgroundIndex
authorKadir Cetinkaya <kadircet@google.com>
Thu, 18 Jul 2019 17:25:57 +0000 (17:25 +0000)
committerKadir Cetinkaya <kadircet@google.com>
Thu, 18 Jul 2019 17:25:57 +0000 (17:25 +0000)
llvm-svn: 366468

clang-tools-extra/clangd/index/Background.cpp

index 309804e..a9e28f8 100644 (file)
@@ -509,9 +509,6 @@ BackgroundIndex::loadProject(std::vector<std::string> MainFiles) {
     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));
   }