summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-05-28 15:43:12 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-05-28 15:43:12 +0000
commitb894583716289087a7144fd770d1a5f96bca82cd (patch)
treeac384f58ed34c6f4209781d2334bd62641b87e0f /protocols/SkypeWeb
parentdbea29eeae016a4a48b91b954f3a4e93ca4072f7 (diff)
unused code removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@13873 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb')
-rw-r--r--protocols/SkypeWeb/src/skype_messages.cpp16
-rw-r--r--protocols/SkypeWeb/src/skype_proto.cpp5
-rw-r--r--protocols/SkypeWeb/src/skype_proto.h2
3 files changed, 0 insertions, 23 deletions
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);