[PATCH] D44213: [clangd] Remove unused field in HandlerRegisterer
Simon Marchi via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 7 13:49:56 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rCTE326947: [clangd] Remove unused field in HandlerRegisterer (authored by simark, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D44213?vs=137410&id=137471#toc
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D44213
Files:
clangd/ClangdLSPServer.cpp
clangd/ProtocolHandlers.cpp
clangd/ProtocolHandlers.h
Index: clangd/ProtocolHandlers.cpp
===================================================================
--- clangd/ProtocolHandlers.cpp
+++ clangd/ProtocolHandlers.cpp
@@ -38,16 +38,14 @@
}
JSONRPCDispatcher &Dispatcher;
- JSONOutput *Out;
ProtocolCallbacks *Callbacks;
};
} // namespace
void clangd::registerCallbackHandlers(JSONRPCDispatcher &Dispatcher,
- JSONOutput &Out,
ProtocolCallbacks &Callbacks) {
- HandlerRegisterer Register{Dispatcher, &Out, &Callbacks};
+ HandlerRegisterer Register{Dispatcher, &Callbacks};
Register("initialize", &ProtocolCallbacks::onInitialize);
Register("shutdown", &ProtocolCallbacks::onShutdown);
Index: clangd/ProtocolHandlers.h
===================================================================
--- clangd/ProtocolHandlers.h
+++ clangd/ProtocolHandlers.h
@@ -55,7 +55,7 @@
virtual void onChangeConfiguration(DidChangeConfigurationParams &Params) = 0;
};
-void registerCallbackHandlers(JSONRPCDispatcher &Dispatcher, JSONOutput &Out,
+void registerCallbackHandlers(JSONRPCDispatcher &Dispatcher,
ProtocolCallbacks &Callbacks);
} // namespace clangd
Index: clangd/ClangdLSPServer.cpp
===================================================================
--- clangd/ClangdLSPServer.cpp
+++ clangd/ClangdLSPServer.cpp
@@ -409,7 +409,7 @@
JSONRPCDispatcher Dispatcher([](const json::Expr &Params) {
replyError(ErrorCode::MethodNotFound, "method not found");
});
- registerCallbackHandlers(Dispatcher, Out, /*Callbacks=*/*this);
+ registerCallbackHandlers(Dispatcher, /*Callbacks=*/*this);
// Run the Language Server loop.
runLanguageServerLoop(In, Out, InputStyle, Dispatcher, IsDone);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44213.137471.patch
Type: text/x-patch
Size: 1784 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180307/d37a6b83/attachment.bin>
More information about the cfe-commits
mailing list