From 8f2b4ccfb4280ec022dd59f44c1bb661c832231b Mon Sep 17 00:00:00 2001 From: Radoslaw Jablonski Date: Mon, 14 Feb 2011 11:19:47 +0200 Subject: [PATCH] obexd: Remove unnecessary checking for num_fields in pull_contact This check is no longer needed - it was used to ensure that no error occured in querying tracker. This is redundant because checking for that case is located in the beginning of pull_contacts function. --- obexd/plugins/phonebook-tracker.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/obexd/plugins/phonebook-tracker.c b/obexd/plugins/phonebook-tracker.c index 6b9bb2fee..c80ee6852 100644 --- a/obexd/plugins/phonebook-tracker.c +++ b/obexd/plugins/phonebook-tracker.c @@ -1634,9 +1634,7 @@ add_numbers: done: vcards = gen_vcards(data->contacts, params); - if (num_fields == 0) - data->cb(vcards->str, vcards->len, - g_slist_length(data->contacts), + data->cb(vcards->str, vcards->len, g_slist_length(data->contacts), data->newmissedcalls, data->user_data); g_string_free(vcards, TRUE); -- 2.47.3