[gtk+/gtk-3-22] entrycompletion: Remove unnecessary NULL check
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] entrycompletion: Remove unnecessary NULL check
- Date: Sat, 18 Mar 2017 12:35:07 +0000 (UTC)
commit 9c52d8e8f0cd6b7f00fb99db7aff855f6ba367da
Author: Timm Bäder <mail baedert org>
Date: Sat Mar 18 07:13:13 2017 +0100
entrycompletion: Remove unnecessary NULL check
completion really shouldn't be NULL at this point, especially since it
gets dereferenced higher up in the function.
gtk/gtkentrycompletion.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
index d7ab7a2..2ab53d6 100644
--- a/gtk/gtkentrycompletion.c
+++ b/gtk/gtkentrycompletion.c
@@ -2236,7 +2236,7 @@ gtk_entry_completion_key_press (GtkWidget *widget,
event->keyval == GDK_KEY_ISO_Enter ||
event->keyval == GDK_KEY_Escape)
{
- if (completion && completion->priv->completion_timeout)
+ if (completion->priv->completion_timeout)
{
g_source_remove (completion->priv->completion_timeout);
completion->priv->completion_timeout = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]