[gtk+/wip/baedert/drawing: 248/262] window: Remove dead code
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 248/262] window: Remove dead code
- Date: Tue, 6 Jun 2017 09:40:33 +0000 (UTC)
commit 8a17c8c1d2011974a90466235831296c81e7b9e7
Author: Timm Bäder <mail baedert org>
Date: Fri Jun 2 18:24:38 2017 +0200
window: Remove dead code
This case can never happen since GtkWindow instances never have a
parent.
gtk/gtkwindow.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 12bfe4b..d7a6aee 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -7994,12 +7994,6 @@ static void
gtk_window_queue_draw_region (GtkWidget *widget,
const cairo_region_t *region)
{
- if (_gtk_widget_get_parent (widget))
- {
- GTK_WIDGET_CLASS (gtk_window_parent_class)->queue_draw_region (widget, region);
- return;
- }
-
gtk_debug_updates_add (widget, region);
gdk_window_invalidate_region (_gtk_widget_get_window (widget), region, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]