[clang-tools-extra] c443b61 - [clangd] Remove the deprecated clangdServer::rename API, NFC.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 2 00:48:37 PST 2020
Author: Haojian Wu
Date: 2020-03-02T09:48:25+01:00
New Revision: c443b610bf3682eb32949b552b8c6908a8d96267
URL: https://github.com/llvm/llvm-project/commit/c443b610bf3682eb32949b552b8c6908a8d96267
DIFF: https://github.com/llvm/llvm-project/commit/c443b610bf3682eb32949b552b8c6908a8d96267.diff
LOG: [clangd] Remove the deprecated clangdServer::rename API, NFC.
There is no actual user of it now.
Added:
Modified:
clang-tools-extra/clangd/ClangdServer.cpp
clang-tools-extra/clangd/ClangdServer.h
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/ClangdServer.cpp b/clang-tools-extra/clangd/ClangdServer.cpp
index 92dcf841331a..f1a88902c8c0 100644
--- a/clang-tools-extra/clangd/ClangdServer.cpp
+++ b/clang-tools-extra/clangd/ClangdServer.cpp
@@ -394,14 +394,6 @@ void ClangdServer::rename(PathRef File, Position Pos, llvm::StringRef NewName,
WorkScheduler.runWithAST("Rename", File, std::move(Action));
}
-void ClangdServer::rename(PathRef File, Position Pos, llvm::StringRef NewName,
- bool WantFormat, Callback<FileEdits> CB) {
- RenameOptions Opts;
- Opts.WantFormat = WantFormat;
- Opts.AllowCrossFile = false;
- rename(File, Pos, NewName, Opts, std::move(CB));
-}
-
// May generate several candidate selections, due to SelectionTree ambiguity.
// vector of pointers because GCC doesn't like non-copyable Selection.
static llvm::Expected<std::vector<std::unique_ptr<Tweak::Selection>>>
diff --git a/clang-tools-extra/clangd/ClangdServer.h b/clang-tools-extra/clangd/ClangdServer.h
index ced0325fc7b3..e9f2c30b1749 100644
--- a/clang-tools-extra/clangd/ClangdServer.h
+++ b/clang-tools-extra/clangd/ClangdServer.h
@@ -264,9 +264,6 @@ class ClangdServer {
/// highlighting them in prepare stage).
void rename(PathRef File, Position Pos, llvm::StringRef NewName,
const RenameOptions &Opts, Callback<FileEdits> CB);
- // FIXME: remove this compatibility method in favor above.
- void rename(PathRef File, Position Pos, llvm::StringRef NewName,
- bool WantFormat, Callback<FileEdits> CB);
struct TweakRef {
std::string ID; /// ID to pass for applyTweak.
More information about the cfe-commits
mailing list