aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-08-08 14:29:40 +0200
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-08-08 14:39:14 +0200
commitfa0a60dd93e4485c1f62ffcc87fa9e6b195ce795 (patch)
tree1b95dc912aea752701fe1a9f72358c539e0f6168 /src
parentb565485c24c0feacae559a7f6f7b83d7516ca58d (diff)
Remove unused boost signals2 from torcontrol
Diffstat (limited to 'src')
-rw-r--r--src/torcontrol.cpp2
-rw-r--r--src/torcontrol.h3
2 files changed, 1 insertions, 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 <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;