[gtk+/wip/baedert/drawing: 13/73] window: Remove dead code



commit 4902c2a7476a958b283a20c5d4e46d18ea4b1e44
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]