summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/http.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-03-30 11:35:03 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-03-30 11:35:03 +0300
commit7d95e67308ee0abcce5c7bd66265146d3dfefd74 (patch)
tree9c377087518bb53a429151edb6a947fc47e89242 /protocols/Discord/src/http.cpp
parent66821b916cc298111f9e5ddd2684d15ff7909f02 (diff)
useful helper JsonReply moved to the core
Diffstat (limited to 'protocols/Discord/src/http.cpp')
-rw-r--r--protocols/Discord/src/http.cpp19
1 files changed, 0 insertions, 19 deletions
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*)