diff options
author | Timm Bäder <mail@baedert.org> | 2017-03-20 15:36:05 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2017-03-20 15:36:05 +0100 |
commit | 14a864c8b55dfe92f8957499f12a3f9303188a12 (patch) | |
tree | b8b8e227b586df61b8d81fa47712055b89367b3a | |
parent | a3bada37fbefd84738622713ccd542a27de46b24 (diff) | |
download | gtk+-14a864c8b55dfe92f8957499f12a3f9303188a12.tar.gz |
tooltip: Remove unused assignment
hide_tooltip gets overriden in any case 2 lines down, and return_value
isn't used later in that function. The second assignment was introduced
in ef1da5f6c2450fc5f7c7de4a17114cc7507a41ad, directly below the first
assignment.
-rw-r--r-- | gtk/gtktooltip.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c index 3ac5ed0218..563a95e584 100644 --- a/gtk/gtktooltip.c +++ b/gtk/gtktooltip.c @@ -1457,12 +1457,9 @@ gtk_tooltip_handle_event_internal (GdkEvent *event) tip_area_set = current_tooltip->tip_area_set; tip_area = current_tooltip->tip_area; - return_value = gtk_tooltip_run_requery (&has_tooltip_widget, - current_tooltip, - &x, &y); - - /* Requested to be hidden? */ - hide_tooltip = !return_value; + gtk_tooltip_run_requery (&has_tooltip_widget, + current_tooltip, + &x, &y); /* Leave notify should override the query function */ hide_tooltip = (event->type == GDK_LEAVE_NOTIFY); |