[gtk/wip/baedert/css-values: 7/20] cssdimensionvalue: remove early-out code from transition()



commit 20c0e40286b6acac78eeb7b5b8a401413912a1fa
Author: Timm Bäder <mail baedert org>
Date:   Wed Jan 15 09:57:11 2020 +0100

    cssdimensionvalue: remove early-out code from transition()
    
    We do this directly in gtk_css_value_transition() now

 gtk/gtkcssdimensionvalue.c | 9 ---------
 1 file changed, 9 deletions(-)
---
diff --git a/gtk/gtkcssdimensionvalue.c b/gtk/gtkcssdimensionvalue.c
index 87c290ad8a..0e7020708a 100644
--- a/gtk/gtkcssdimensionvalue.c
+++ b/gtk/gtkcssdimensionvalue.c
@@ -249,15 +249,6 @@ gtk_css_value_dimension_transition (GtkCssValue *start,
                                     guint        property_id,
                                     double       progress)
 {
-  if (progress == 0)
-    return _gtk_css_value_ref (start);
-
-  if (progress == 1)
-    return _gtk_css_value_ref (end);
-
-  if (start == end)
-    return _gtk_css_value_ref (start);
-
   if (start->unit != end->unit)
     return NULL;
 


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