From ae4e75fd6e89cb7706b218f54ea16a0bbdb9a0c2 Mon Sep 17 00:00:00 2001 From: Krasimir Georgiev Date: Tue, 16 Oct 2018 18:44:41 +0000 Subject: Revert "[clangd] Refactor JSON-over-stdin/stdout code into Transport abstraction." This reverts commit r344620. Breaks upstream bots. llvm-svn: 344637 --- clang-tools-extra/clangd/Protocol.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'clang-tools-extra/clangd/Protocol.h') diff --git a/clang-tools-extra/clangd/Protocol.h b/clang-tools-extra/clangd/Protocol.h index 940c78f1d59..7026d47b981 100644 --- a/clang-tools-extra/clangd/Protocol.h +++ b/clang-tools-extra/clangd/Protocol.h @@ -48,23 +48,6 @@ enum class ErrorCode { // Defined by the protocol. RequestCancelled = -32800, }; -// Models an LSP error as an llvm::Error. -class LSPError : public llvm::ErrorInfo { -public: - std::string Message; - ErrorCode Code; - static char ID; - - LSPError(std::string Message, ErrorCode Code) - : Message(std::move(Message)), Code(Code) {} - - void log(llvm::raw_ostream &OS) const override { - OS << int(Code) << ": " << Message; - } - std::error_code convertToErrorCode() const override { - return llvm::inconvertibleErrorCode(); - } -}; struct URIForFile { URIForFile() = default; -- cgit v1.2.3