[totem] playlist: Remove unused function



commit cc2949c4249936173f770805fbb7de70a7804ad4
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Apr 13 12:45:33 2012 +0100

    playlist: Remove unused function

 src/totem-playlist.c |   34 ----------------------------------
 src/totem-playlist.h |    4 ----
 2 files changed, 0 insertions(+), 38 deletions(-)
---
diff --git a/src/totem-playlist.c b/src/totem-playlist.c
index 3b79edc..e133e1c 100644
--- a/src/totem-playlist.c
+++ b/src/totem-playlist.c
@@ -2951,37 +2951,3 @@ totem_playlist_class_init (TotemPlaylistClass *klass)
 				totemplaylist_marshal_VOID__STRING_STRING,
 				G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_STRING);
 }
-
-static gboolean
-totem_playlist_foreach_cb (GtkTreeModel *model,
-			   GtkTreePath  *path,
-			   GtkTreeIter  *iter,
-			   gpointer      data)
-{
-	PlaylistForeachContext *context = data;
-	gchar *filename = NULL;
-	gchar *uri = NULL;
-
-	gtk_tree_model_get (model, iter, URI_COL, &uri, FILENAME_COL, &filename, -1);
-	context->callback (context->playlist, filename, uri, context->user_data);
-
-	g_free (filename);
-	g_free (uri);
-
-	return FALSE;
-}
-
-void
-totem_playlist_foreach (TotemPlaylist            *playlist,
-			TotemPlaylistForeachFunc  callback,
-			gpointer                  user_data)
-{
-	PlaylistForeachContext context = { playlist, callback, user_data };
-
-	g_return_if_fail (TOTEM_IS_PLAYLIST (playlist));
-	g_return_if_fail (NULL != callback);
-
-	gtk_tree_model_foreach (playlist->priv->model,
-				totem_playlist_foreach_cb,
-				&context);
-}
diff --git a/src/totem-playlist.h b/src/totem-playlist.h
index af358fd..e8544b9 100644
--- a/src/totem-playlist.h
+++ b/src/totem-playlist.h
@@ -165,10 +165,6 @@ int        totem_playlist_get_current (TotemPlaylist *playlist);
 int        totem_playlist_get_last (TotemPlaylist *playlist);
 void       totem_playlist_set_current (TotemPlaylist *playlist, guint current_index);
 
-void       totem_playlist_foreach (TotemPlaylist *playlist,
-				   TotemPlaylistForeachFunc callback,
-				   gpointer user_data);
-
 G_END_DECLS
 
 #endif /* TOTEM_PLAYLIST_H */



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