[evolution-data-server] Remove extra test on Google server photo data validity



commit a25eda8a36a91914cc5216062c7fafbdaf9b0074
Author: Milan Crha <mcrha redhat com>
Date:   Fri May 4 13:15:21 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 a6a45a5..de597fd 100644
--- a/addressbook/backends/google/e-book-backend-google.c
+++ b/addressbook/backends/google/e-book-backend-google.c
@@ -3440,8 +3440,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]