[gtk+] label: Remove useless if statement



commit 2fc92db25c9939cdf701b83bbc913cb043cf9100
Author: Timm Bäder <mail baedert org>
Date:   Tue Apr 25 15:39:46 2017 +0200

    label: Remove useless if statement
    
    The if before this one already makes sure priv->wrap is TRUE.

 gtk/gtklabel.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 150433f..ffa3f34 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -3855,8 +3855,7 @@ gtk_label_measure (GtkCssGadget   *gadget,
   if ((orientation == GTK_ORIENTATION_VERTICAL && for_size != -1 && priv->wrap && (priv->angle == 0 || 
priv->angle == 180 || priv->angle == 360)) ||
       (orientation == GTK_ORIENTATION_HORIZONTAL && priv->wrap && (priv->angle == 90 || priv->angle == 270)))
     {
-      if (priv->wrap)
-        gtk_label_clear_layout (label);
+      gtk_label_clear_layout (label);
 
       get_size_for_allocation (label, for_size, minimum, natural, minimum_baseline, natural_baseline);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]