From 7c12d73cd69458a9b1007e8d8c1d2c4ac18b4e4c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 5 Jun 2017 19:36:37 +0300 Subject: minor fixes for Discord protocol --- protocols/Discord/src/dispatch.cpp | 2 +- protocols/Discord/src/proto.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'protocols/Discord') diff --git a/protocols/Discord/src/dispatch.cpp b/protocols/Discord/src/dispatch.cpp index 3f04af06a3..e3ac110128 100644 --- a/protocols/Discord/src/dispatch.cpp +++ b/protocols/Discord/src/dispatch.cpp @@ -258,7 +258,7 @@ void CDiscordProto::OnCommandGuildDeleted(const JSONNode &pRoot) ///////////////////////////////////////////////////////////////////////////////////////// // guild members -void CDiscordProto::OnCommandGuildMemberAdded(const JSONNode &pRoot) +void CDiscordProto::OnCommandGuildMemberAdded(const JSONNode&) { } diff --git a/protocols/Discord/src/proto.cpp b/protocols/Discord/src/proto.cpp index 70d666ac3e..68fb32d8a8 100644 --- a/protocols/Discord/src/proto.cpp +++ b/protocols/Discord/src/proto.cpp @@ -408,8 +408,6 @@ void CDiscordProto::MarkReadTimerProc(HWND hwnd, UINT, UINT_PTR id, DWORD) { CDiscordProto *ppro = (CDiscordProto*)(id - 1); - JSONNode root; root.push_back(JSONNode("token", nullptr)); - mir_cslock lck(ppro->csMarkReadQueue); while (ppro->arMarkReadQueue.getCount()) { CDiscordUser *pUser = ppro->arMarkReadQueue[0]; -- cgit v1.2.3