From fa0a60dd93e4485c1f62ffcc87fa9e6b195ce795 Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Tue, 8 Aug 2023 14:29:40 +0200 Subject: [PATCH] Remove unused boost signals2 from torcontrol --- src/torcontrol.cpp | 2 +- src/torcontrol.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/torcontrol.cpp b/src/torcontrol.cpp index a8d6fb4b3f..d0630428c4 100644 --- a/src/torcontrol.cpp +++ b/src/torcontrol.cpp @@ -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 diff --git a/src/torcontrol.h b/src/torcontrol.h index afc5413db0..8c48cc14e8 100644 --- a/src/torcontrol.h +++ b/src/torcontrol.h @@ -11,7 +11,6 @@ #include #include -#include #include #include @@ -83,8 +82,6 @@ public: */ bool Command(const std::string &cmd, const ReplyHandlerCB& reply_handler); - /** Response handlers for async replies */ - boost::signals2::signal async_handler; private: /** Callback when ready for use */ std::function connected;