From: Timm Bäder Date: Sat, 12 Oct 2019 15:53:59 +0000 (+0200) Subject: colorscale: Remove some duplicated code X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~20^2~721 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7344723a95ae74b2e7cb325e35bd89fa1cc6696f;p=gtk4.git colorscale: Remove some duplicated code --- diff --git a/gtk/gtkcolorscale.c b/gtk/gtkcolorscale.c index 0ee32118db..daf350ebb0 100644 --- a/gtk/gtkcolorscale.c +++ b/gtk/gtkcolorscale.c @@ -105,18 +105,12 @@ gtk_color_scale_snapshot_trough (GtkColorScale *scale, bytes, stride); g_bytes_unref (bytes); - - gtk_snapshot_append_texture (snapshot, - texture, - &GRAPHENE_RECT_INIT(0, 0, width, height)); priv->hue_texture = texture; } - else - { - gtk_snapshot_append_texture (snapshot, - priv->hue_texture, - &GRAPHENE_RECT_INIT(0, 0, width, height)); - } + + gtk_snapshot_append_texture (snapshot, + priv->hue_texture, + &GRAPHENE_RECT_INIT(0, 0, width, height)); } else if (priv->type == GTK_COLOR_SCALE_ALPHA) {