[gnome-photos] searchbar: Remove redundant NULL check
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] searchbar: Remove redundant NULL check
- Date: Thu, 8 Oct 2015 15:57:23 +0000 (UTC)
commit 8a7a24e238f06ba23f0da08883b9e45bb1b2f883
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Oct 8 15:23:45 2015 +0200
searchbar: Remove redundant NULL check
Now that we g_application_get_default instead of
photos_application_new, we don't drop the reference to the Application
instance. Hence this check is not needed.
Fall out from cf0c61997f36ab9fbb0a64f2b1d2279298fa5ec7
src/photos-searchbar.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-searchbar.c b/src/photos-searchbar.c
index a38814e..2b5a0cd 100644
--- a/src/photos-searchbar.c
+++ b/src/photos-searchbar.c
@@ -217,8 +217,7 @@ photos_searchbar_dispose (GObject *object)
priv->search_state_id = 0;
}
- if (priv->app != NULL)
- photos_searchbar_enable_search (self, FALSE);
+ photos_searchbar_enable_search (self, FALSE);
G_OBJECT_CLASS (photos_searchbar_parent_class)->dispose (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]