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/Twitter/src/proto.cpp | 7 ------- protocols/Twitter/src/proto.h | 1 - 2 files changed, 8 deletions(-) (limited to 'protocols/Twitter/src') diff --git a/protocols/Twitter/src/proto.cpp b/protocols/Twitter/src/proto.cpp index 5f9aca161e..4d00afc349 100644 --- a/protocols/Twitter/src/proto.cpp +++ b/protocols/Twitter/src/proto.cpp @@ -30,7 +30,6 @@ TwitterProto::TwitterProto(const char *proto_name, const wchar_t *username) : PROTO(proto_name, username) { CreateProtoService(PS_CREATEACCMGRUI, &TwitterProto::SvcCreateAccMgrUI); - CreateProtoService(PS_GETNAME, &TwitterProto::GetName); CreateProtoService(PS_GETSTATUS, &TwitterProto::GetStatus); CreateProtoService(PS_JOINCHAT, &TwitterProto::OnJoinChat); @@ -206,12 +205,6 @@ INT_PTR TwitterProto::SvcCreateAccMgrUI(WPARAM, LPARAM lParam) return (INT_PTR)CreateDialogParam(g_hInstance, MAKEINTRESOURCE(IDD_TWITTERACCOUNT), (HWND)lParam, first_run_dialog, (LPARAM)this); } -INT_PTR TwitterProto::GetName(WPARAM wParam, LPARAM lParam) -{ - mir_strncpy(reinterpret_cast(lParam), m_szModuleName, (int)wParam); - return 0; -} - INT_PTR TwitterProto::GetStatus(WPARAM, LPARAM) { return m_iStatus; diff --git a/protocols/Twitter/src/proto.h b/protocols/Twitter/src/proto.h index c18ee3b6e5..a62c462045 100644 --- a/protocols/Twitter/src/proto.h +++ b/protocols/Twitter/src/proto.h @@ -49,7 +49,6 @@ public: // Services INT_PTR __cdecl SvcCreateAccMgrUI(WPARAM,LPARAM); - INT_PTR __cdecl GetName(WPARAM,LPARAM); INT_PTR __cdecl GetStatus(WPARAM,LPARAM); INT_PTR __cdecl ReplyToTweet(WPARAM,LPARAM); INT_PTR __cdecl VisitHomepage(WPARAM,LPARAM); -- cgit v1.2.3