diff options
author | George Hazan <ghazan@miranda.im> | 2020-03-24 17:28:09 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-03-24 17:28:09 +0300 |
commit | 0c0b248bc88a606a37f204fcb6bc3a1b9c62464f (patch) | |
tree | c0a75ed395de06572590092aeceb9e72da1f1598 /protocols | |
parent | 8b91e6423697f9e76051b4b43c8463baee16ea94 (diff) |
SINT64_PARAM support moved into libjson
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Discord/src/stdafx.h | 11 | ||||
-rw-r--r-- | protocols/Discord/src/utils.cpp | 9 |
2 files changed, 0 insertions, 20 deletions
diff --git a/protocols/Discord/src/stdafx.h b/protocols/Discord/src/stdafx.h index 1a2cbc3278..7e04081d2c 100644 --- a/protocols/Discord/src/stdafx.h +++ b/protocols/Discord/src/stdafx.h @@ -66,17 +66,6 @@ extern IconItem g_iconList[]; #include "version.h" #include "proto.h" -struct SINT64_PARAM : public PARAM -{ - int64_t iValue; - __forceinline SINT64_PARAM(const char *_name, int64_t _value) : - PARAM(_name), iValue(_value) - { - } -}; - -JSONNode& operator<<(JSONNode &json, const SINT64_PARAM ¶m); - ///////////////////////////////////////////////////////////////////////////////////////// void BuildStatusList(const CDiscordGuild *pGuild, SESSION_INFO *si); diff --git a/protocols/Discord/src/utils.cpp b/protocols/Discord/src/utils.cpp index 0a96809354..d2b8f701d3 100644 --- a/protocols/Discord/src/utils.cpp +++ b/protocols/Discord/src/utils.cpp @@ -32,15 +32,6 @@ int StrToStatus(const CMStringW &str) ///////////////////////////////////////////////////////////////////////////////////////// -JSONNode& operator<<(JSONNode &json, const SINT64_PARAM ¶m) -{ - char str[40]; - _i64toa(param.iValue, str, 10); - return json << CHAR_PARAM(param.szName, str); -} - -///////////////////////////////////////////////////////////////////////////////////////// - time_t StringToDate(const CMStringW &str) { struct tm T = { 0 }; |