[gtk/wip/baedert/css-values: 6/13] 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: 6/13] cssdimensionvalue: remove early-out code from transition()
- Date: Thu, 16 Jan 2020 07:24:15 +0000 (UTC)
commit 8a069fc9b9ad98ed92ac476066cfb5ab4511b462
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]