[gnome-photos/wip/rishi/item-manager: 1/12] item-manager: Remove redundant NULL check
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/item-manager: 1/12] item-manager: Remove redundant NULL check
- Date: Fri, 19 Aug 2016 09:13:05 +0000 (UTC)
commit 4af9c85d67696260784fce5b8080e78eb25a5106
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Aug 19 09:00:23 2016 +0200
item-manager: Remove redundant NULL check
photos_base_manager_remove_object_by_id already ensures that a NULL id
isn't propagated.
src/photos-item-manager.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/src/photos-item-manager.c b/src/photos-item-manager.c
index 0bc80f9..2ed21dd 100644
--- a/src/photos-item-manager.c
+++ b/src/photos-item-manager.c
@@ -287,9 +287,6 @@ photos_item_manager_remove_object_by_id (PhotosBaseManager *mngr, const gchar *i
PhotosItemManager *self = PHOTOS_ITEM_MANAGER (mngr);
gpointer *collection;
- if (id == NULL)
- goto end;
-
collection = g_hash_table_lookup (self->collections, id);
if (collection == NULL)
goto end;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]