[totem] main: Remove unused totem_playlist_save_current_playlist_ext()



commit 07781252b26d1ac3eeccbada8cae508502a85f23
Author: Bastien Nocera <hadess hadess net>
Date:   Sat Feb 1 14:43:59 2014 +0100

    main: Remove unused totem_playlist_save_current_playlist_ext()

 src/totem-playlist.c |   29 -----------------------------
 src/totem-playlist.h |    2 --
 2 files changed, 0 insertions(+), 31 deletions(-)
---
diff --git a/src/totem-playlist.c b/src/totem-playlist.c
index 5026182..820a7b2 100644
--- a/src/totem-playlist.c
+++ b/src/totem-playlist.c
@@ -385,35 +385,6 @@ totem_playlist_save_session_playlist (TotemPlaylist *playlist,
        g_object_unref (pl_playlist);
 }
 
-void
-totem_playlist_save_current_playlist_ext (TotemPlaylist *playlist, const char *output, TotemPlParserType 
type)
-{
-       TotemPlPlaylist *pl_playlist;
-       GError *error = NULL;
-       GFile *output_file;
-       gboolean retval;
-
-       pl_playlist = totem_pl_playlist_new ();
-       output_file = g_file_new_for_commandline_arg (output);
-
-       gtk_tree_model_foreach (playlist->priv->model,
-                               totem_playlist_save_iter_foreach,
-                               pl_playlist);
-
-       retval = totem_pl_parser_save (playlist->priv->parser,
-                                      pl_playlist,
-                                      output_file,
-                                      NULL, type, &error);
-
-       if (retval == FALSE) {
-               g_warning ("Playlist could not be saved: %s", error->message);
-               g_error_free (error);
-       }
-
-       g_object_unref (pl_playlist);
-       g_object_unref (output_file);
-}
-
 static void
 gtk_tree_selection_has_selected_foreach (GtkTreeModel *model,
                GtkTreePath *path, GtkTreeIter *iter, gpointer user_data)
diff --git a/src/totem-playlist.h b/src/totem-playlist.h
index 82c44bf..819fea2 100644
--- a/src/totem-playlist.h
+++ b/src/totem-playlist.h
@@ -118,8 +118,6 @@ gboolean totem_playlist_add_mrls_finish (TotemPlaylist *self,
 void totem_playlist_save_session_playlist (TotemPlaylist *playlist,
                                           GFile         *output,
                                           gint64         starttime);
-void totem_playlist_save_current_playlist_ext (TotemPlaylist *playlist,
-                                          const char *output, TotemPlParserType type);
 void totem_playlist_select_subtitle_dialog (TotemPlaylist *playlist,
                                            TotemPlaylistSelectDialog mode);
 


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