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



commit 2159e28d1b3fc07bf88b3eba0fac4f3ac3a5f945
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 afd5ce2798..712742735c 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]