mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
interval: Remove unnecessary check
Now that the interval can transform the initial and final values to the type declared when constructing it, there is no need to check for the value type inside set_initial_value() and set_final_value().
This commit is contained in:
parent
a0c620b157
commit
54e22590b9
@ -754,15 +754,9 @@ void
|
||||
clutter_interval_set_initial_value (ClutterInterval *interval,
|
||||
const GValue *value)
|
||||
{
|
||||
ClutterIntervalPrivate *priv;
|
||||
|
||||
g_return_if_fail (CLUTTER_IS_INTERVAL (interval));
|
||||
g_return_if_fail (value != NULL);
|
||||
|
||||
priv = interval->priv;
|
||||
|
||||
g_return_if_fail (G_VALUE_TYPE (value) == priv->value_type);
|
||||
|
||||
clutter_interval_set_value_internal (interval, INITIAL, value);
|
||||
}
|
||||
|
||||
@ -852,15 +846,9 @@ void
|
||||
clutter_interval_set_final_value (ClutterInterval *interval,
|
||||
const GValue *value)
|
||||
{
|
||||
ClutterIntervalPrivate *priv;
|
||||
|
||||
g_return_if_fail (CLUTTER_IS_INTERVAL (interval));
|
||||
g_return_if_fail (value != NULL);
|
||||
|
||||
priv = interval->priv;
|
||||
|
||||
g_return_if_fail (G_VALUE_TYPE (value) == priv->value_type);
|
||||
|
||||
clutter_interval_set_value_internal (interval, FINAL, value);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user