summaryrefslogtreecommitdiff
path: root/protocols/Discord/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-12-21 16:12:41 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-12-21 16:12:41 +0300
commit01e5902caa74b8712ae014aee917e3403024646c (patch)
tree29210465c8eb69937b3c4177d82bc2c2f4576f84 /protocols/Discord/src
parentd30afe819abb03b139190c020db271888fab5eb1 (diff)
code cleaning
Diffstat (limited to 'protocols/Discord/src')
-rw-r--r--protocols/Discord/src/http.cpp8
-rw-r--r--protocols/Discord/src/proto.h1
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;