[evolution-data-server] [Google book] Remove unnecessary code path found by Coverity Scan
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] [Google book] Remove unnecessary code path found by Coverity Scan
- Date: Thu, 28 May 2015 18:06:05 +0000 (UTC)
commit 907b66c5a282acdecb213873f23ecc87aed9a0aa
Author: Milan Crha <mcrha redhat com>
Date: Thu May 28 20:05:14 2015 +0200
[Google book] Remove unnecessary code path found by Coverity Scan
.../backends/google/e-book-backend-google.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/addressbook/backends/google/e-book-backend-google.c
b/addressbook/backends/google/e-book-backend-google.c
index 9664506..13a1eab 100644
--- a/addressbook/backends/google/e-book-backend-google.c
+++ b/addressbook/backends/google/e-book-backend-google.c
@@ -535,21 +535,15 @@ process_contact_finish (EBookBackend *backend,
GDataEntry *entry)
{
EContact *new_contact;
- gboolean was_cached;
g_debug (G_STRFUNC);
- was_cached = cache_has_contact (backend, gdata_entry_get_id (entry));
new_contact = cache_add_contact (backend, entry);
if (!new_contact)
return;
- if (was_cached == TRUE) {
- e_book_backend_notify_update (backend, new_contact);
- } else {
- e_book_backend_notify_update (backend, new_contact);
- }
+ e_book_backend_notify_update (backend, new_contact);
g_object_unref (new_contact);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]