widget: Avoid a dead assignment

This commit is contained in:
Timm Bäder 2018-04-12 08:20:43 +02:00
parent 497d2f8c50
commit 3a995b41d7

View File

@ -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;