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)); } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits