[gnome-photos] base-manager: Remove redundant NULL check
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] base-manager: Remove redundant NULL check
- Date: Thu, 10 Nov 2016 11:09:24 +0000 (UTC)
commit fd05c9d05f882eb8f62c613042d36d3d7e86abe3
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Nov 8 09:46:04 2016 +0100
base-manager: Remove redundant NULL check
photos_base_manager_get_object_by_id already ensures that a NULL isn't
propagated.
src/photos-base-manager.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/src/photos-base-manager.c b/src/photos-base-manager.c
index 26d89b3..d92bdfa 100644
--- a/src/photos-base-manager.c
+++ b/src/photos-base-manager.c
@@ -101,16 +101,11 @@ static GObject *
photos_base_manager_default_get_object_by_id (PhotosBaseManager *self, const gchar *id)
{
PhotosBaseManagerPrivate *priv;
- GObject *ret_val = NULL;
+ GObject *ret_val;
priv = photos_base_manager_get_instance_private (self);
- if (id == NULL)
- goto out;
-
ret_val = g_hash_table_lookup (priv->objects, id);
-
- out:
return ret_val;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]