From 3a995b41d787a28d725492751be4d4a74f3dd3d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 12 Apr 2018 08:20:43 +0200 Subject: [PATCH] widget: Avoid a dead assignment --- gtk/gtkwidget.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 8a96707b4b..6969343cfa 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -13304,7 +13304,7 @@ void gtk_widget_snapshot (GtkWidget *widget, GtkSnapshot *snapshot) { - GtkWidgetPrivate *priv = widget->priv; + GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget); graphene_rect_t clip; gboolean has_clip; double opacity; @@ -13318,8 +13318,6 @@ gtk_widget_snapshot (GtkWidget *widget, return; } - priv = widget->priv; - opacity = widget->priv->alpha / 255.0; if (opacity <= 0.0) return;