Remove unused boost signals2 from torcontrol

This commit is contained in:
MarcoFalke 2023-08-08 14:29:40 +02:00
parent b565485c24
commit fa0a60dd93
No known key found for this signature in database
2 changed files with 1 additions and 4 deletions

View File

@ -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

View File

@ -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;