[gtk/wip/baedert/css-values: 18/31] 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: 18/31] cssdimensionvalue: remove early-out code from transition()
- Date: Thu, 16 Jan 2020 16:04:41 +0000 (UTC)
commit 524f0c8fea8afbe3963361630b427df660372c26
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]