summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");