From 985c61c624c7304783266c9f79e602f26f2887fd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 13 Aug 2019 11:39:01 +0300 Subject: useless checks removed --- protocols/Gadu-Gadu/src/core.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'protocols/Gadu-Gadu/src') 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) -- cgit v1.2.3