diff options
author | George Hazan <george.hazan@gmail.com> | 2024-01-24 13:38:10 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-01-24 13:38:10 +0300 |
commit | 0fa39189ae1eea51681d472db38a290bc4df1cfe (patch) | |
tree | c4c5c8f5970947ed6c62418fd86106166db485a2 /protocols/Sametime | |
parent | 60fec7a89a7870d52ebd76315193b105973b1219 (diff) |
PS_GETNAME: another old atavism removed
Diffstat (limited to 'protocols/Sametime')
-rw-r--r-- | protocols/Sametime/src/sametime.cpp | 11 | ||||
-rw-r--r-- | protocols/Sametime/src/sametime_proto.cpp | 1 | ||||
-rw-r--r-- | protocols/Sametime/src/sametime_proto.h | 1 |
3 files changed, 0 insertions, 13 deletions
diff --git a/protocols/Sametime/src/sametime.cpp b/protocols/Sametime/src/sametime.cpp index 27fa124bb6..58bdbb877f 100644 --- a/protocols/Sametime/src/sametime.cpp +++ b/protocols/Sametime/src/sametime.cpp @@ -36,17 +36,6 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOC /////////////////////////////////////////////////////////////////////////////////////////
// protocol related services
-/** Copy the name of the protocol into lParam
-* @param wParam : max size of the name
-* @param lParam : reference to a char *, which will hold the name
-*/
-INT_PTR CSametimeProto::GetName(WPARAM wParam, LPARAM lParam)
-{
- strncpy((char*)lParam, m_szModuleName, wParam);
- return 0;
-}
-
-
/** Loads the icon corresponding to the status
* Called by the CList when the status changes.
* @param wParam : icon type
diff --git a/protocols/Sametime/src/sametime_proto.cpp b/protocols/Sametime/src/sametime_proto.cpp index 7f6c4e6cc5..1174ec9481 100644 --- a/protocols/Sametime/src/sametime_proto.cpp +++ b/protocols/Sametime/src/sametime_proto.cpp @@ -25,7 +25,6 @@ CSametimeProto::CSametimeProto(const char* pszProtoName, const wchar_t* tszUserN SametimeInitIcons();
- CreateProtoService(PS_GETNAME, &CSametimeProto::GetName);
CreateProtoService(PS_LOADICON, &CSametimeProto::SametimeLoadIcon);
HookProtoEvent(ME_MSG_WINDOWEVENT, &CSametimeProto::OnWindowEvent);
diff --git a/protocols/Sametime/src/sametime_proto.h b/protocols/Sametime/src/sametime_proto.h index 44f6bcd3a8..11d5002beb 100644 --- a/protocols/Sametime/src/sametime_proto.h +++ b/protocols/Sametime/src/sametime_proto.h @@ -41,7 +41,6 @@ struct CSametimeProto : public PROTO<CSametimeProto> bool OnContactDeleted(MCONTACT hContact, uint32_t flags) override;
// sametime.cpp
- INT_PTR __cdecl GetName(WPARAM wParam, LPARAM lParam);
INT_PTR __cdecl SametimeLoadIcon(WPARAM wParam, LPARAM lParam);
int __cdecl OnWindowEvent(WPARAM wParam, LPARAM lParam);
int __cdecl OnIdleChanged(WPARAM wParam, LPARAM lParam);
|