From 6e24fb4c04e26ae2804fea9134b3cd0fc1b1cfc3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 3 Jan 2017 17:37:17 +0300 Subject: it's senseless to declare GetName member for the descendants of PROTO --- protocols/Discord/src/proto.cpp | 7 ------- protocols/Discord/src/proto.h | 1 - 2 files changed, 8 deletions(-) (limited to 'protocols/Discord/src') diff --git a/protocols/Discord/src/proto.cpp b/protocols/Discord/src/proto.cpp index e124ffe57f..358f4e7bf6 100644 --- a/protocols/Discord/src/proto.cpp +++ b/protocols/Discord/src/proto.cpp @@ -36,7 +36,6 @@ CDiscordProto::CDiscordProto(const char *proto_name, const wchar_t *username) : arUsers(50, compareUsers) { // Services - CreateProtoService(PS_GETNAME, &CDiscordProto::GetName); CreateProtoService(PS_GETSTATUS, &CDiscordProto::GetStatus); // Events @@ -94,12 +93,6 @@ DWORD_PTR CDiscordProto::GetCaps(int type, MCONTACT) return 0; } -INT_PTR CDiscordProto::GetName(WPARAM wParam, LPARAM lParam) -{ - mir_strncpy((char*)lParam, m_szModuleName, (int)wParam); - return 0; -} - INT_PTR CDiscordProto::GetStatus(WPARAM, LPARAM) { return m_iStatus; diff --git a/protocols/Discord/src/proto.h b/protocols/Discord/src/proto.h index 83046a9c5c..ee9569781c 100644 --- a/protocols/Discord/src/proto.h +++ b/protocols/Discord/src/proto.h @@ -155,7 +155,6 @@ public: virtual int __cdecl OnEvent(PROTOEVENTTYPE, WPARAM, LPARAM) override; // Services - INT_PTR __cdecl GetName(WPARAM, LPARAM); INT_PTR __cdecl GetStatus(WPARAM, LPARAM); // Events -- cgit v1.2.3