Small code cleanup.
This commit is contained in:
parent
7c6e429854
commit
57be6f94bb
3 changed files with 1 additions and 11 deletions
|
@ -534,9 +534,3 @@ void Client::onResolved(uv_getaddrinfo_t *req, int status, struct addrinfo *res)
|
|||
client->connect(res->ai_addr);
|
||||
uv_freeaddrinfo(res);
|
||||
}
|
||||
|
||||
|
||||
Client *Client::getClient(void *data)
|
||||
{
|
||||
return static_cast<Client*>(data);
|
||||
}
|
||||
|
|
|
@ -96,7 +96,7 @@ private:
|
|||
static void onRead(uv_stream_t *stream, ssize_t nread, const uv_buf_t *buf);
|
||||
static void onResolved(uv_getaddrinfo_t *req, int status, struct addrinfo *res);
|
||||
|
||||
static Client *getClient(void *data);
|
||||
static inline Client *getClient(void *data) { return static_cast<Client*>(data); }
|
||||
|
||||
bool m_quiet;
|
||||
char m_ip[17];
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
#include <uv.h>
|
||||
|
||||
|
||||
#include "interfaces/IClientListener.h"
|
||||
#include "interfaces/IJobResultListener.h"
|
||||
#include "interfaces/IStrategyListener.h"
|
||||
|
||||
|
@ -57,10 +56,7 @@ protected:
|
|||
void onResultAccepted(Client *client, uint32_t diff, uint64_t ms, const char *error) override;
|
||||
|
||||
private:
|
||||
void addPool(const Url *url);
|
||||
void setJob(Client *client, const Job &job);
|
||||
void startDonate();
|
||||
void stopDonate();
|
||||
|
||||
bool m_donateActive;
|
||||
char *m_agent;
|
||||
|
|
Loading…
Reference in a new issue