From b894583716289087a7144fd770d1a5f96bca82cd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 28 May 2015 15:43:12 +0000 Subject: unused code removed git-svn-id: http://svn.miranda-ng.org/main/trunk@13873 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_messages.cpp | 16 ---------------- protocols/SkypeWeb/src/skype_proto.cpp | 5 ----- protocols/SkypeWeb/src/skype_proto.h | 2 -- 3 files changed, 23 deletions(-) (limited to 'protocols/SkypeWeb/src') diff --git a/protocols/SkypeWeb/src/skype_messages.cpp b/protocols/SkypeWeb/src/skype_messages.cpp index 65c26869d4..cdb52b4356 100644 --- a/protocols/SkypeWeb/src/skype_messages.cpp +++ b/protocols/SkypeWeb/src/skype_messages.cpp @@ -42,22 +42,6 @@ int CSkypeProto::OnReceiveMessage(const char *messageId, const char *url, time_t return ProtoChainRecvMsg(hContact, &recv); } -// writing message/even into db -int CSkypeProto::SaveMessageToDb(MCONTACT hContact, PROTORECVEVENT *pre) -{ - //return Proto_RecvMessage(hContact, pre); - if (pre->szMessage == NULL) - return NULL; - - int flags = DBEF_UTF; - if ((pre->flags & PREF_CREATEREAD) == PREF_CREATEREAD) - flags |= DBEF_READ; - if ((pre->flags & PREF_SENT) == PREF_SENT) - flags |= DBEF_SENT; - - return AddMessageToDb(hContact, pre->timestamp, flags, (char*)pre->pCustomData, pre->szMessage, pre->lParam); -} - /* MESSAGE SENDING */ struct SendMessageParam diff --git a/protocols/SkypeWeb/src/skype_proto.cpp b/protocols/SkypeWeb/src/skype_proto.cpp index 26628255b3..bbe1dbdcf4 100644 --- a/protocols/SkypeWeb/src/skype_proto.cpp +++ b/protocols/SkypeWeb/src/skype_proto.cpp @@ -180,11 +180,6 @@ int CSkypeProto::GetInfo(MCONTACT hContact, int) return 0; } -int CSkypeProto::RecvMsg(MCONTACT hContact, PROTORECVEVENT *pre) -{ - return SaveMessageToDb(hContact, pre); -} - int CSkypeProto::SendMsg(MCONTACT hContact, int flags, const char *msg) { return OnSendMessage(hContact, flags, msg); diff --git a/protocols/SkypeWeb/src/skype_proto.h b/protocols/SkypeWeb/src/skype_proto.h index 8b96f4ceeb..0f58cbbaaf 100644 --- a/protocols/SkypeWeb/src/skype_proto.h +++ b/protocols/SkypeWeb/src/skype_proto.h @@ -63,7 +63,6 @@ public: virtual HANDLE __cdecl SearchBasic(const PROTOCHAR* id); - virtual int __cdecl RecvMsg(MCONTACT hContact, PROTORECVEVENT *pre); virtual int __cdecl SendMsg(MCONTACT hContact, int flags, const char* msg); virtual int __cdecl SetStatus(int iNewStatus); @@ -245,7 +244,6 @@ private: MEVENT AddCallToDb(MCONTACT hContact, DWORD timestamp, DWORD flags, const char *callId, const char *gp); MEVENT AddCallInfoToDb(MCONTACT hContact, DWORD timestamp, DWORD flags, const char *messageId, char *content); int OnReceiveMessage(const char *messageId, const char *url, time_t timestamp, char *content, int emoteOffset = 0, bool isRead = false); - int SaveMessageToDb(MCONTACT hContact, PROTORECVEVENT *pre); int OnSendMessage(MCONTACT hContact, int flags, const char *message); void OnMessageSent(const NETLIBHTTPREQUEST *response, void *arg); -- cgit v1.2.3