cssdimensionvalue: remove early-out code from transition()
authorTimm Bäder <mail@baedert.org>
Wed, 15 Jan 2020 08:57:11 +0000 (09:57 +0100)
committerTimm Bäder <mail@baedert.org>
Sat, 18 Jan 2020 07:49:52 +0000 (08:49 +0100)
We do this directly in gtk_css_value_transition() now

gtk/gtkcssdimensionvalue.c

index 87c290ad8a6d7a74cc4f2e39155806bfdd38f095..0e7020708ab53d3bca7fa1f8129c167d054c3451 100644 (file)
@@ -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;