[mutter] clutter/tests: Remove dead code



commit caf27c4c16e7847a5b01f7c7e8db03946d5392f3
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Sun Jan 20 09:04:46 2019 +0100

    clutter/tests: Remove dead code
    
    Defined, but not used anywhere.

 clutter/tests/interactive/test-script.c       | 22 ----------------------
 clutter/tests/interactive/test-state-script.c | 10 ----------
 2 files changed, 32 deletions(-)
---
diff --git a/clutter/tests/interactive/test-script.c b/clutter/tests/interactive/test-script.c
index 1b8fa99f4..66c716e43 100644
--- a/clutter/tests/interactive/test-script.c
+++ b/clutter/tests/interactive/test-script.c
@@ -78,28 +78,6 @@ static const gchar *test_behaviour =
 "  }"
 "]";
 
-gdouble
-sine_alpha (ClutterAlpha *alpha,
-            gpointer      dummy G_GNUC_UNUSED)
-{
-  ClutterTimeline *timeline = clutter_alpha_get_timeline (alpha);
-
-  return sin (clutter_timeline_get_progress (timeline) * G_PI);
-}
-
-gdouble
-double_ramp_alpha (ClutterAlpha *alpha,
-                   gpointer      dummy G_GNUC_UNUSED)
-{
-  ClutterTimeline *timeline = clutter_alpha_get_timeline (alpha);
-  gdouble progress = clutter_timeline_get_progress (timeline);
-
-  if (progress >= 0.5)
-    return 1.0 - progress;
-
-  return progress;
-}
-
 static gboolean
 blue_button_press (ClutterActor       *actor,
                    ClutterButtonEvent *event,
diff --git a/clutter/tests/interactive/test-state-script.c b/clutter/tests/interactive/test-state-script.c
index 8b5502d68..bc29b3c4a 100644
--- a/clutter/tests/interactive/test-state-script.c
+++ b/clutter/tests/interactive/test-state-script.c
@@ -9,16 +9,6 @@
 int
 test_state_script_main (int argc, char *argv[]);
 
-gboolean
-on_button_press (ClutterActor *actor,
-                 ClutterEvent *event,
-                 gpointer      dummy G_GNUC_UNUSED)
-{
-  g_print ("Button pressed!\n");
-
-  return FALSE;
-}
-
 G_MODULE_EXPORT int
 test_state_script_main (int argc, char *argv[])
 {


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