Small code cleanup.

This commit is contained in:
XMRig 2017-07-13 18:02:48 +03:00
parent 7c6e429854
commit 57be6f94bb
3 changed files with 1 additions and 11 deletions

View file

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

View file

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

View file

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