diff options
author | Piotr Piastucki <leech.miranda@gmail.com> | 2015-05-21 00:18:47 +0000 |
---|---|---|
committer | Piotr Piastucki <leech.miranda@gmail.com> | 2015-05-21 00:18:47 +0000 |
commit | 1b673c9c170f595fdf9a0c34029451bbba3d4139 (patch) | |
tree | d7e5a7419aae8e9cf8bd268def197ca0748b08d6 /protocols/MSN/src/msn_contact.cpp | |
parent | f5a2a6da0378e95c5eb330e0ec4dc2aeca2e7fd2 (diff) |
Removed obsolete code from protocol like P2P, Media Info status messages, Nudge, File transfers, Switchboard.
Currently it is just disabled with #ifdef OBSOLETE in order to keep the code for future reference and still benefit from decreased file size.
If MSN protocol doesn't get back these features, code can finally be thrown out then later. Most likely, these features will be gone forever.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13726 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MSN/src/msn_contact.cpp')
-rw-r--r-- | protocols/MSN/src/msn_contact.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/protocols/MSN/src/msn_contact.cpp b/protocols/MSN/src/msn_contact.cpp index 4e58396710..6087c99a8b 100644 --- a/protocols/MSN/src/msn_contact.cpp +++ b/protocols/MSN/src/msn_contact.cpp @@ -106,7 +106,7 @@ void CMsnProto::MSN_SetContactDb(MCONTACT hContact, const char *szEmail) void CMsnProto::AddDelUserContList(const char* email, const int list, const int netId, const bool del)
{
-/*
+#ifdef OBSOLETE
char buf[512];
size_t sz;
@@ -126,7 +126,7 @@ void CMsnProto::AddDelUserContList(const char* email, const int list, const int }
msnNsThread->sendPacket(del ? "RML" : "ADL", "%d\r\n%s", sz, buf);
}
-*/
+#endif
if (del)
Lists_Remove(list, email);
@@ -204,8 +204,10 @@ bool CMsnProto::MSN_AddUser(MCONTACT hContact, const char* email, int netId, int MSN_SharingFindMembership(true);
AddDelUserContList(email, flags, netId, false);
}
+#ifdef OBSOLETE
else if (netId == 1 && strstr(email, "@yahoo.com") != 0)
MSN_FindYahooUser(email);
+#endif
db_free(&dbv);
}
@@ -232,7 +234,7 @@ bool CMsnProto::MSN_AddUser(MCONTACT hContact, const char* email, int netId, int return res;
}
-
+#ifdef OBSOLETE
void CMsnProto::MSN_FindYahooUser(const char* email)
{
const char *dom = strchr(email, '@');
@@ -246,6 +248,7 @@ void CMsnProto::MSN_FindYahooUser(const char* email) msnNsThread->sendPacket("FQY", "%d\r\n%s", sz, buf);
}
}
+#endif
bool CMsnProto::MSN_RefreshContactList(void)
{
|