[totem] main: Remove totem_action_set_playlist_index() function



commit f8bc05f54bdcca00990a0413ad101102f40bbe4c
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Mar 19 10:31:41 2013 +0100

    main: Remove totem_action_set_playlist_index() function

 src/totem-object.c |   23 -----------------------
 src/totem.h        |    2 --
 2 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index 87da31e..0020c0c 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -2736,29 +2736,6 @@ totem_object_action_next_angle (TotemObject *totem)
 }
 
 /**
- * totem_action_set_playlist_index:
- * @totem: a #TotemObject
- * @index: the new playlist index
- *
- * Sets the <code class="literal">0</code>-based playlist index to @index, causing Totem to load and
- * start playing that playlist entry.
- *
- * If @index is higher than the current length of the playlist, this
- * has the effect of restarting the current playlist entry.
- **/
-void
-totem_action_set_playlist_index (TotemObject *totem, guint playlist_index)
-{
-       char *mrl, *subtitle;
-
-       totem_playlist_set_current (totem->playlist, playlist_index);
-       mrl = totem_playlist_get_current_mrl (totem->playlist, &subtitle);
-       totem_action_set_mrl_and_play (totem, mrl, subtitle);
-       g_free (mrl);
-       g_free (subtitle);
-}
-
-/**
  * totem_object_action_remote:
  * @totem: a #TotemObject
  * @cmd: a #TotemRemoteCommand
diff --git a/src/totem.h b/src/totem.h
index bfc2781..8d900a4 100644
--- a/src/totem.h
+++ b/src/totem.h
@@ -216,8 +216,6 @@ gint64      totem_get_current_time                  (TotemObject *totem);
 
 /* Playlist handling */
 guint  totem_object_get_playlist_length        (TotemObject *totem);
-void   totem_action_set_playlist_index         (TotemObject *totem,
-                                                guint index);
 int    totem_object_get_playlist_pos           (TotemObject *totem);
 char * totem_object_get_title_at_playlist_pos  (TotemObject *totem,
                                                 guint playlist_index);


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