diff options
author | George Hazan <ghazan@miranda.im> | 2018-12-21 16:12:41 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-12-21 16:12:41 +0300 |
commit | 01e5902caa74b8712ae014aee917e3403024646c (patch) | |
tree | 29210465c8eb69937b3c4177d82bc2c2f4576f84 /protocols/Discord/src | |
parent | d30afe819abb03b139190c020db271888fab5eb1 (diff) |
code cleaning
Diffstat (limited to 'protocols/Discord/src')
-rw-r--r-- | protocols/Discord/src/http.cpp | 8 | ||||
-rw-r--r-- | protocols/Discord/src/proto.h | 1 |
2 files changed, 0 insertions, 9 deletions
diff --git a/protocols/Discord/src/http.cpp b/protocols/Discord/src/http.cpp index cf368a5270..ad57ffc62c 100644 --- a/protocols/Discord/src/http.cpp +++ b/protocols/Discord/src/http.cpp @@ -32,16 +32,8 @@ AsyncHttpRequest* CDiscordProto::Push(AsyncHttpRequest *pReq, int iTimeout) static LONG g_reqNum = 0; -AsyncHttpRequest::AsyncHttpRequest() -{ - cbSize = sizeof(NETLIBHTTPREQUEST); - m_iReqNum = ::InterlockedIncrement(&g_reqNum); -} - AsyncHttpRequest::AsyncHttpRequest(CDiscordProto *ppro, int iRequestType, LPCSTR _url, MTHttpRequestHandler pFunc, JSONNode *pRoot) { - cbSize = sizeof(NETLIBHTTPREQUEST); - if (*_url == '/') { // relative url leads to a site m_szUrl = "https://discordapp.com/api/v6"; m_szUrl += _url; diff --git a/protocols/Discord/src/proto.h b/protocols/Discord/src/proto.h index 7321e9efa2..6b42804e0e 100644 --- a/protocols/Discord/src/proto.h +++ b/protocols/Discord/src/proto.h @@ -12,7 +12,6 @@ typedef void (CDiscordProto::*GatewayHandlerFunc)(const JSONNode&); struct AsyncHttpRequest : public MTHttpRequest<CDiscordProto> { - AsyncHttpRequest(); AsyncHttpRequest(CDiscordProto*, int iRequestType, LPCSTR szUrl, MTHttpRequestHandler pFunc, JSONNode *pNode = nullptr); int m_iErrorCode, m_iReqNum; |