From 56531e7f42b65124e033bc7ba4a44e48d9df0549 Mon Sep 17 00:00:00 2001 From: Sam McCall Date: Thu, 25 Oct 2018 02:25:44 +0000 Subject: [PATCH] [clangd] Remove unused CDB function. NFC llvm-svn: 345233 --- clang-tools-extra/clangd/GlobalCompilationDatabase.cpp | 6 ------ clang-tools-extra/clangd/GlobalCompilationDatabase.h | 3 --- 2 files changed, 9 deletions(-) diff --git a/clang-tools-extra/clangd/GlobalCompilationDatabase.cpp b/clang-tools-extra/clangd/GlobalCompilationDatabase.cpp index 0e09cd1..204af82 100644 --- a/clang-tools-extra/clangd/GlobalCompilationDatabase.cpp +++ b/clang-tools-extra/clangd/GlobalCompilationDatabase.cpp @@ -59,12 +59,6 @@ DirectoryBasedGlobalCompilationDatabase::getFallbackCommand( return C; } -void DirectoryBasedGlobalCompilationDatabase::setCompileCommandsDir(Path P) { - std::lock_guard Lock(Mutex); - CompileCommandsDir = P; - CompilationDatabases.clear(); -} - void DirectoryBasedGlobalCompilationDatabase::setExtraFlagsForFile( PathRef File, std::vector ExtraFlags) { std::lock_guard Lock(Mutex); diff --git a/clang-tools-extra/clangd/GlobalCompilationDatabase.h b/clang-tools-extra/clangd/GlobalCompilationDatabase.h index f09045e..464b592 100644 --- a/clang-tools-extra/clangd/GlobalCompilationDatabase.h +++ b/clang-tools-extra/clangd/GlobalCompilationDatabase.h @@ -62,9 +62,6 @@ public: /// Uses the default fallback command, adding any extra flags. tooling::CompileCommand getFallbackCommand(PathRef File) const override; - /// Set the compile commands directory to \p P. - void setCompileCommandsDir(Path P); - /// Sets the extra flags that should be added to a file. void setExtraFlagsForFile(PathRef File, std::vector ExtraFlags); -- 2.7.4