From 2b82b6fe83df09a31a60288871227b3ea97d39a5 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Fri, 3 Apr 2015 21:57:47 +0000 Subject: SkypeWeb: cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@12597 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_contacts.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'protocols/SkypeWeb/src/skype_contacts.cpp') diff --git a/protocols/SkypeWeb/src/skype_contacts.cpp b/protocols/SkypeWeb/src/skype_contacts.cpp index 98563bcda5..a9e7db7e97 100644 --- a/protocols/SkypeWeb/src/skype_contacts.cpp +++ b/protocols/SkypeWeb/src/skype_contacts.cpp @@ -19,9 +19,7 @@ void CSkypeProto::SetContactStatus(MCONTACT hContact, WORD status) void CSkypeProto::SetAllContactsStatus(WORD status) { for (MCONTACT hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName)) - { SetContactStatus(hContact, status); - } } MCONTACT CSkypeProto::GetContactFromAuthEvent(MEVENT hEvent) @@ -50,9 +48,7 @@ MCONTACT CSkypeProto::GetContact(const char *skypename) { ptrA cSkypename(getStringA(hContact, SKYPE_SETTINGS_ID)); if (mir_strcmpi(skypename, cSkypename) == 0) - { break; - } } return hContact; } @@ -78,9 +74,7 @@ MCONTACT CSkypeProto::AddContact(const char *skypename, bool isTemporary) setByte(hContact, "Grant", 1); if (isTemporary) - { db_set_b(hContact, "CList", "NotOnList", 1); - } } return hContact; } @@ -207,10 +201,8 @@ void CSkypeProto::LoadContactList(const NETLIBHTTPREQUEST *response) delSetting(hContact, "Grant"); } else - { setByte(hContact, "Grant", 1); - } - + node = json_get(item, "blocked"); setByte(hContact, "IsBlocked", json_as_bool(node)); @@ -225,9 +217,7 @@ void CSkypeProto::LoadContactList(const NETLIBHTTPREQUEST *response) PushRequest(new GetContactsInfoRequest(token, skypenames), &CSkypeProto::LoadContactsInfo); for (size_t i = 0; i < skypenames.getCount(); i++) - { mir_free(skypenames[i]); - } skypenames.destroy(); } PushRequest(new GetContactsAuthRequest(token), &CSkypeProto::LoadContactsAuth); -- cgit v1.2.3