[evolution-data-server/gnome-3-4] Remove extra test on Google server photo data validity



commit 105ec36080f4ad9213f6386e95f2d85f79cab748
Author: Milan Crha <mcrha redhat com>
Date:   Fri May 4 13:17:55 2012 +0200

    Remove extra test on Google server photo data validity
    
    It sometimes can happen that a contact has filled photo's etag,
    while the photo itself is not present. In that case backend skipped
    the contact, instead of passing it without photo.

 .../backends/google/e-book-backend-google.c        |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/addressbook/backends/google/e-book-backend-google.c b/addressbook/backends/google/e-book-backend-google.c
index b8e80fc..cae047f 100644
--- a/addressbook/backends/google/e-book-backend-google.c
+++ b/addressbook/backends/google/e-book-backend-google.c
@@ -3438,8 +3438,6 @@ _e_contact_new_from_gdata_entry (EBookBackend *backend,
 	photo = g_object_get_data (G_OBJECT (entry), "photo");
 	photo_etag = gdata_contacts_contact_get_photo_etag (GDATA_CONTACTS_CONTACT (entry));
 
-	g_return_val_if_fail ((photo == NULL) == (photo_etag == NULL), NULL);
-
 	if (photo != NULL) {
 		/* Photo */
 		e_contact_set (E_CONTACT (vcard), E_CONTACT_PHOTO, photo);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]