[totem] playlist: Remove dead code



commit 7899b3969e0c281dd7a618277b9aba2b782f94d8
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Dec 4 11:25:47 2015 +0100

    playlist: Remove dead code
    
    https://bugzilla.gnome.org/show_bug.cgi?id=750102

 src/totem-playlist.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/src/totem-playlist.c b/src/totem-playlist.c
index b56c8e7..4cba0d6 100644
--- a/src/totem-playlist.c
+++ b/src/totem-playlist.c
@@ -898,7 +898,6 @@ totem_playlist_add_one_mrl (TotemPlaylist *playlist,
        GtkListStore *store;
        GtkTreeIter iter;
        char *filename_for_display, *uri, *escaped_filename;
-       GtkTreeRowReference *ref;
        GFileMonitor *monitor;
        GMount *mount;
        GFile *file;
@@ -911,7 +910,6 @@ totem_playlist_add_one_mrl (TotemPlaylist *playlist,
        else
                filename_for_display = g_strdup (display_name);
 
-       ref = NULL;
        uri = totem_create_full_path (mrl);
 
        g_debug ("totem_playlist_add_one_mrl (): %s %s %s %s %s\n", filename_for_display, uri, display_name, 
subtitle_uri, playing ? "true" : "false");
@@ -959,13 +957,6 @@ totem_playlist_add_one_mrl (TotemPlaylist *playlist,
        if (playlist->priv->current == NULL)
                playlist->priv->current = gtk_tree_model_get_path (playlist->priv->model, &iter);
 
-       /* And update current to point to the right file again */
-       if (ref != NULL) {
-               gtk_tree_path_free (playlist->priv->current);
-               playlist->priv->current = gtk_tree_row_reference_get_path (ref);
-               gtk_tree_row_reference_free (ref);
-       }
-
        g_signal_emit (G_OBJECT (playlist),
                        totem_playlist_table_signals[CHANGED], 0,
                        NULL);


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