From e2f4885bb68f43d7e731da3b70d3af5b021055b8 Mon Sep 17 00:00:00 2001 From: Radoslaw Jablonski Date: Fri, 13 Aug 2010 09:35:11 +0300 Subject: [PATCH] obexd: Fix unnecessary checking for empty phones list Removed not needed anymore checking for empty list of phone numbers. --- obexd/plugins/vcard.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/obexd/plugins/vcard.c b/obexd/plugins/vcard.c index 9beb62a83..80f826554 100644 --- a/obexd/plugins/vcard.c +++ b/obexd/plugins/vcard.c @@ -295,11 +295,6 @@ static void vcard_printf_end(GString *vcards) void phonebook_add_contact(GString *vcards, struct phonebook_contact *contact, uint64_t filter, uint8_t format) { - /* There's really nothing to do */ - if ((contact->numbers == NULL && (contact->fullname == NULL || - contact->fullname[0] == '\0'))) - return; - if (format == FORMAT_VCARD30) filter |= (FILTER_VERSION | FILTER_FN | FILTER_N | FILTER_TEL); else if (format == FORMAT_VCARD21) -- 2.47.3