From 7d95e67308ee0abcce5c7bd66265146d3dfefd74 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 30 Mar 2025 11:35:03 +0300 Subject: useful helper JsonReply moved to the core --- protocols/Discord/src/http.cpp | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'protocols/Discord/src/http.cpp') diff --git a/protocols/Discord/src/http.cpp b/protocols/Discord/src/http.cpp index 32976d39cf..f6a912e9e4 100644 --- a/protocols/Discord/src/http.cpp +++ b/protocols/Discord/src/http.cpp @@ -74,25 +74,6 @@ AsyncHttpRequest::AsyncHttpRequest(CDiscordProto *ppro, int iRequestType, LPCSTR m_iReqNum = ::InterlockedIncrement(&g_reqNum); } -JsonReply::JsonReply(MHttpResponse *pReply) -{ - if (pReply == nullptr) { - m_errorCode = 500; - return; - } - - m_errorCode = pReply->resultCode; - - m_root = json_parse(pReply->body); - if (m_root == nullptr) - m_errorCode = 500; -} - -JsonReply::~JsonReply() -{ - json_delete(m_root); -} - ///////////////////////////////////////////////////////////////////////////////////////// void CDiscordProto::ServerThread(void*) -- cgit v1.2.3