[clutter] interval: Remove unnecessary check



commit 54e22590b95c54dcba066e9519b87e529d33cf7d
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Mon Jun 18 18:02:58 2012 +0100

    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().

 clutter/clutter-interval.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/clutter/clutter-interval.c b/clutter/clutter-interval.c
index 16dd4be..3a0f303 100644
--- a/clutter/clutter-interval.c
+++ b/clutter/clutter-interval.c
@@ -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);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]