summaryrefslogtreecommitdiff
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
parentd30afe819abb03b139190c020db271888fab5eb1 (diff)
code cleaning
-rw-r--r--protocols/Discord/src/http.cpp8
-rw-r--r--protocols/Discord/src/proto.h1
-rw-r--r--protocols/VKontakte/src/vk_struct.cpp2
3 files changed, 0 insertions, 11 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;
diff --git a/protocols/VKontakte/src/vk_struct.cpp b/protocols/VKontakte/src/vk_struct.cpp
index e02430914b..9fb9ca08b3 100644
--- a/protocols/VKontakte/src/vk_struct.cpp
+++ b/protocols/VKontakte/src/vk_struct.cpp
@@ -23,7 +23,6 @@ ULONG AsyncHttpRequest::m_reqCount = 0;
AsyncHttpRequest::AsyncHttpRequest()
{
- cbSize = sizeof(NETLIBHTTPREQUEST);
m_bApiReq = true;
AddHeader("Connection", "keep-alive");
pUserInfo = nullptr;
@@ -38,7 +37,6 @@ AsyncHttpRequest::AsyncHttpRequest()
AsyncHttpRequest::AsyncHttpRequest(CVkProto *ppro, int iRequestType, LPCSTR _url, bool bSecure, MTHttpRequestHandler pFunc, RequestPriority rpPriority)
{
- cbSize = sizeof(NETLIBHTTPREQUEST);
m_bApiReq = true;
bIsMainConn = false;
AddHeader("Connection", "keep-alive");