Skip to content

Commit fa0a60d

Browse files
author
MarcoFalke
committed
Remove unused boost signals2 from torcontrol
1 parent b565485 commit fa0a60d

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/torcontrol.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ void TorControlConnection::readcb(struct bufferevent *bev, void *ctx)
8585
if (ch == ' ') {
8686
// Final line, dispatch reply and clean up
8787
if (self->message.code >= 600) {
88+
// (currently unused)
8889
// Dispatch async notifications to async handler
8990
// Synchronous and asynchronous messages are never interleaved
90-
self->async_handler(*self, self->message);
9191
} else {
9292
if (!self->reply_handlers.empty()) {
9393
// Invoke reply handler with message

src/torcontrol.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include <netaddress.h>
1212
#include <util/fs.h>
1313

14-
#include <boost/signals2/signal.hpp>
1514

1615
#include <event2/bufferevent.h>
1716
#include <event2/event.h>
@@ -83,8 +82,6 @@ class TorControlConnection
8382
*/
8483
bool Command(const std::string &cmd, const ReplyHandlerCB& reply_handler);
8584

86-
/** Response handlers for async replies */
87-
boost::signals2::signal<void(TorControlConnection &,const TorControlReply &)> async_handler;
8885
private:
8986
/** Callback when ready for use */
9087
std::function<void(TorControlConnection&)> connected;

0 commit comments

Comments
 (0)