diff --git a/clutter/clutter/clutter-timeline.c b/clutter/clutter/clutter-timeline.c index 13d6f09ea..005c14d10 100644 --- a/clutter/clutter/clutter-timeline.c +++ b/clutter/clutter/clutter-timeline.c @@ -1321,43 +1321,6 @@ clutter_timeline_is_playing (ClutterTimeline *timeline) return timeline->priv->is_playing; } -/** - * clutter_timeline_clone: - * @timeline: #ClutterTimeline to duplicate. - * - * Create a new #ClutterTimeline instance which has property values - * matching that of supplied timeline. The cloned timeline will not - * be started and will not be positioned to the current position of - * the original @timeline: you will have to start it with - * clutter_timeline_start(). - * - * The only cloned properties are: - * - * - #ClutterTimeline:duration - * - #ClutterTimeline:delay - * - #ClutterTimeline:direction - * - * Return value: (transfer full): a new #ClutterTimeline, cloned - * from @timeline - * - * Since: 0.4 - * - * Deprecated: 1.10: Use clutter_timeline_new() or g_object_new() - * instead - */ -ClutterTimeline * -clutter_timeline_clone (ClutterTimeline *timeline) -{ - g_return_val_if_fail (CLUTTER_IS_TIMELINE (timeline), NULL); - - return g_object_new (CLUTTER_TYPE_TIMELINE, - "duration", timeline->priv->duration, - "repeat-count", timeline->priv->repeat_count, - "delay", timeline->priv->delay, - "direction", timeline->priv->direction, - NULL); -} - /** * clutter_timeline_new: * @duration_ms: Duration of the timeline in milliseconds diff --git a/clutter/clutter/deprecated/clutter-timeline.h b/clutter/clutter/deprecated/clutter-timeline.h index 5c3a578ef..f51650add 100644 --- a/clutter/clutter/deprecated/clutter-timeline.h +++ b/clutter/clutter/deprecated/clutter-timeline.h @@ -26,9 +26,6 @@ G_BEGIN_DECLS -CLUTTER_DEPRECATED_FOR(clutter_timeline_new) -ClutterTimeline * clutter_timeline_clone (ClutterTimeline *timeline); - G_END_DECLS #endif /* __CLUTTER_TIMELINE_PRIVATE_H__ */ diff --git a/src/tests/clutter/conform/timeline.c b/src/tests/clutter/conform/timeline.c index 5be3d83cb..eb9e1cd4f 100644 --- a/src/tests/clutter/conform/timeline.c +++ b/src/tests/clutter/conform/timeline.c @@ -212,7 +212,7 @@ timeline_base (void) g_strfreev (markers); timeline_data_init (&data_2, 2); - timeline_2 = clutter_timeline_clone (timeline_1); + timeline_2 = clutter_timeline_new (FRAME_COUNT * 1000 / FPS); clutter_timeline_add_marker_at_time (timeline_2, "bar", 2 * 1000 / FPS); markers = clutter_timeline_list_markers (timeline_2, -1, &n_markers); g_assert (markers != NULL); @@ -221,7 +221,7 @@ timeline_base (void) g_strfreev (markers); timeline_data_init (&data_3, 3); - timeline_3 = clutter_timeline_clone (timeline_1); + timeline_3 = clutter_timeline_new (FRAME_COUNT * 1000 / FPS); clutter_timeline_set_direction (timeline_3, CLUTTER_TIMELINE_BACKWARD); clutter_timeline_add_marker_at_time (timeline_3, "start-marker", FRAME_COUNT * 1000 / FPS);