[gtk/wip/baedert/css-values: 7/20] cssdimensionvalue: remove early-out code from transition()
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/css-values: 7/20] cssdimensionvalue: remove early-out code from transition()
- Date: Thu, 16 Jan 2020 13:51:04 +0000 (UTC)
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]