diff options
author | George Hazan <george.hazan@gmail.com> | 2014-07-08 15:49:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-07-08 15:49:18 +0000 |
commit | 62ab18a9fda2f19c08ae63a14c7a262ca62f0cce (patch) | |
tree | 821876224af8cb3e3f4b9b29ea3237212cde37e7 /plugins/SecureIM/src/crypt_metacontacts.cpp | |
parent | 19a5e6f0b9c3232933132dbaa9420aecef497336 (diff) |
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@9732 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SecureIM/src/crypt_metacontacts.cpp')
-rw-r--r-- | plugins/SecureIM/src/crypt_metacontacts.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/plugins/SecureIM/src/crypt_metacontacts.cpp b/plugins/SecureIM/src/crypt_metacontacts.cpp deleted file mode 100644 index 54d3ffd797..0000000000 --- a/plugins/SecureIM/src/crypt_metacontacts.cpp +++ /dev/null @@ -1,29 +0,0 @@ -#include "commonheaders.h"
-
-BOOL isProtoMetaContacts(MCONTACT hContact)
-{
- LPSTR proto = GetContactProto(hContact);
- if (proto && !strcmp(proto, META_PROTO))
- return true;
- return false;
-}
-
-BOOL isDefaultSubContact(MCONTACT hContact)
-{
- return db_mc_getDefault(db_mc_getMeta(hContact)) == hContact;
-}
-
-// remove all secureim connections on subcontacts
-void DeinitMetaContact(MCONTACT hContact)
-{
- MCONTACT hMetaContact = isProtoMetaContacts(hContact) ? hContact : db_mc_getMeta(hContact);
- if (hMetaContact) {
- for (int i=0; i < db_mc_getSubCount(hMetaContact); i++) {
- MCONTACT hSubContact = db_mc_getSub(hMetaContact, i);
- if (hSubContact && (isContactSecured(hSubContact)&SECURED))
- CallContactService(hSubContact,PSS_MESSAGE, PREF_METANODB, (LPARAM)SIG_DEIN);
- }
- }
-}
-
-// EOF
|