mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Remove unused boost signals2 from torcontrol
This commit is contained in:
parent
b565485c24
commit
fa0a60dd93
2 changed files with 1 additions and 4 deletions
|
|
@ -85,9 +85,9 @@ void TorControlConnection::readcb(struct bufferevent *bev, void *ctx)
|
|||
if (ch == ' ') {
|
||||
// Final line, dispatch reply and clean up
|
||||
if (self->message.code >= 600) {
|
||||
// (currently unused)
|
||||
// Dispatch async notifications to async handler
|
||||
// Synchronous and asynchronous messages are never interleaved
|
||||
self->async_handler(*self, self->message);
|
||||
} else {
|
||||
if (!self->reply_handlers.empty()) {
|
||||
// Invoke reply handler with message
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
#include <netaddress.h>
|
||||
#include <util/fs.h>
|
||||
|
||||
#include <boost/signals2/signal.hpp>
|
||||
|
||||
#include <event2/bufferevent.h>
|
||||
#include <event2/event.h>
|
||||
|
|
@ -83,8 +82,6 @@ public:
|
|||
*/
|
||||
bool Command(const std::string &cmd, const ReplyHandlerCB& reply_handler);
|
||||
|
||||
/** Response handlers for async replies */
|
||||
boost::signals2::signal<void(TorControlConnection &,const TorControlReply &)> async_handler;
|
||||
private:
|
||||
/** Callback when ready for use */
|
||||
std::function<void(TorControlConnection&)> connected;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue