summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-08-13 11:39:01 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-08-13 11:39:01 +0300
commit985c61c624c7304783266c9f79e602f26f2887fd (patch)
treed564daacf70417f2756137b6b86a3ee33025090e /protocols/Gadu-Gadu/src
parent23f1148da6fd87d759b69d6f3865384672f78974 (diff)
useless checks removed
Diffstat (limited to 'protocols/Gadu-Gadu/src')
-rw-r--r--protocols/Gadu-Gadu/src/core.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/protocols/Gadu-Gadu/src/core.cpp b/protocols/Gadu-Gadu/src/core.cpp
index d1d74dbc57..d6a16a9493 100644
--- a/protocols/Gadu-Gadu/src/core.cpp
+++ b/protocols/Gadu-Gadu/src/core.cpp
@@ -1469,17 +1469,7 @@ MCONTACT GaduProto::getcontact(uin_t uin, int create, int inlist, wchar_t *szNic
return NULL;
MCONTACT hContact = db_add_contact();
- if (!hContact) {
- debugLogW(L"getcontact(): Failed to create Gadu-Gadu contact %s", szNick);
- return NULL;
- }
-
- if (Proto_AddToContact(hContact, m_szModuleName) != 0) {
- // For some reason we failed to register the protocol for this contact
- db_delete_contact(hContact);
- debugLogA("getcontact(): Failed to register GG contact %d", uin);
- return NULL;
- }
+ Proto_AddToContact(hContact, m_szModuleName);
debugLogA("getcontact(): Added buddy: %d", uin);
if (!inlist)