[mutter] clutter: Remove ClutterFixed



commit b4b13ac9968e7f61c135706c48397dcd65919b73
Author: Jonas Ådahl <jadahl gmail com>
Date:   Wed Jul 20 13:48:57 2016 +0800

    clutter: Remove ClutterFixed
    
    We don't use it any more. Lets get rid of it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=768977

 clutter/clutter/Makefile.am                |    2 -
 clutter/clutter/clutter-deprecated.h       |    1 -
 clutter/clutter/clutter-interval.c         |   22 ---
 clutter/clutter/deprecated/clutter-fixed.c |  205 ----------------------------
 clutter/clutter/deprecated/clutter-fixed.h |   99 -------------
 5 files changed, 0 insertions(+), 329 deletions(-)
---
diff --git a/clutter/clutter/Makefile.am b/clutter/clutter/Makefile.am
index df157df..d22fa6a 100644
--- a/clutter/clutter/Makefile.am
+++ b/clutter/clutter/Makefile.am
@@ -269,7 +269,6 @@ deprecated_h = \
        deprecated/clutter-box.h                        \
        deprecated/clutter-cairo-texture.h              \
        deprecated/clutter-container.h          \
-       deprecated/clutter-fixed.h                      \
        deprecated/clutter-frame-source.h               \
        deprecated/clutter-group.h                      \
        deprecated/clutter-input-device.h               \
@@ -306,7 +305,6 @@ deprecated_c = \
        deprecated/clutter-behaviour-scale.c            \
        deprecated/clutter-box.c                        \
        deprecated/clutter-cairo-texture.c              \
-       deprecated/clutter-fixed.c                      \
        deprecated/clutter-frame-source.c               \
        deprecated/clutter-group.c                      \
        deprecated/clutter-input-device-deprecated.c    \
diff --git a/clutter/clutter/clutter-deprecated.h b/clutter/clutter/clutter-deprecated.h
index 0b16c9b..c54440d 100644
--- a/clutter/clutter/clutter-deprecated.h
+++ b/clutter/clutter/clutter-deprecated.h
@@ -20,7 +20,6 @@
 #include "deprecated/clutter-box.h"
 #include "deprecated/clutter-cairo-texture.h"
 #include "deprecated/clutter-container.h"
-#include "deprecated/clutter-fixed.h"
 #include "deprecated/clutter-frame-source.h"
 #include "deprecated/clutter-group.h"
 #include "deprecated/clutter-input-device.h"
diff --git a/clutter/clutter/clutter-interval.c b/clutter/clutter/clutter-interval.c
index 270864b..6f14287 100644
--- a/clutter/clutter/clutter-interval.c
+++ b/clutter/clutter/clutter-interval.c
@@ -62,9 +62,6 @@
 #include "clutter-scriptable.h"
 #include "clutter-script-private.h"
 
-#define CLUTTER_DISABLE_DEPRECATION_WARNINGS
-#include "deprecated/clutter-fixed.h"
-
 enum
 {
   PROP_0,
@@ -110,25 +107,6 @@ clutter_interval_real_validate (ClutterInterval *interval,
 {
   GType pspec_gtype = G_PARAM_SPEC_VALUE_TYPE (pspec);
 
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
-
-  /* check the GTypes we provide first */
-  if (pspec_gtype == COGL_TYPE_FIXED)
-    {
-      ClutterParamSpecFixed *pspec_fixed = CLUTTER_PARAM_SPEC_FIXED (pspec);
-      CoglFixed a, b;
-
-      a = b = 0;
-      clutter_interval_get_interval (interval, &a, &b);
-      if ((a >= pspec_fixed->minimum && a <= pspec_fixed->maximum) &&
-          (b >= pspec_fixed->minimum && b <= pspec_fixed->maximum))
-        return TRUE;
-      else
-        return FALSE;
-    }
-
-G_GNUC_END_IGNORE_DEPRECATIONS;
-
   /* then check the fundamental types */
   switch (G_TYPE_FUNDAMENTAL (pspec_gtype))
     {


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