mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-28 04:52:36 +02:00
Remove unused boost signals2 from torcontrol
This commit is contained in:
parent
b565485c24
commit
fa0a60dd93
@ -85,9 +85,9 @@ void TorControlConnection::readcb(struct bufferevent *bev, void *ctx)
|
|||||||
if (ch == ' ') {
|
if (ch == ' ') {
|
||||||
// Final line, dispatch reply and clean up
|
// Final line, dispatch reply and clean up
|
||||||
if (self->message.code >= 600) {
|
if (self->message.code >= 600) {
|
||||||
|
// (currently unused)
|
||||||
// Dispatch async notifications to async handler
|
// Dispatch async notifications to async handler
|
||||||
// Synchronous and asynchronous messages are never interleaved
|
// Synchronous and asynchronous messages are never interleaved
|
||||||
self->async_handler(*self, self->message);
|
|
||||||
} else {
|
} else {
|
||||||
if (!self->reply_handlers.empty()) {
|
if (!self->reply_handlers.empty()) {
|
||||||
// Invoke reply handler with message
|
// Invoke reply handler with message
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
#include <netaddress.h>
|
#include <netaddress.h>
|
||||||
#include <util/fs.h>
|
#include <util/fs.h>
|
||||||
|
|
||||||
#include <boost/signals2/signal.hpp>
|
|
||||||
|
|
||||||
#include <event2/bufferevent.h>
|
#include <event2/bufferevent.h>
|
||||||
#include <event2/event.h>
|
#include <event2/event.h>
|
||||||
@ -83,8 +82,6 @@ public:
|
|||||||
*/
|
*/
|
||||||
bool Command(const std::string &cmd, const ReplyHandlerCB& reply_handler);
|
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:
|
private:
|
||||||
/** Callback when ready for use */
|
/** Callback when ready for use */
|
||||||
std::function<void(TorControlConnection&)> connected;
|
std::function<void(TorControlConnection&)> connected;
|
||||||
|
Loading…
Reference in New Issue
Block a user