[Telepathy-commits] [telepathy-gabble/master] gabble_olpc_view_buddies_left_activity: no need to check if removed is > 0 before calling gabble_olpc_view_remove_buddies

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Fri Sep 26 10:02:49 PDT 2008


20080728145317-7fe3f-8ebc64fe03667813df4b7b8be17195a28794d6d6.gz
---
 src/olpc-view.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/src/olpc-view.c b/src/olpc-view.c
index e7a1326..7d5a569 100644
--- a/src/olpc-view.c
+++ b/src/olpc-view.c
@@ -814,10 +814,7 @@ gabble_olpc_view_buddies_left_activity (GabbleOlpcView *self,
         }
     }
 
-  if (tp_handle_set_size (removed) > 0)
-    {
-      gabble_olpc_view_remove_buddies (self, removed);
-    }
+  gabble_olpc_view_remove_buddies (self, removed);
 
   tp_handle_set_destroy (removed);
 }
-- 
1.5.6.5




More information about the Telepathy-commits mailing list