summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2015-12-04 11:25:47 +0100
committerBastien Nocera <hadess@hadess.net>2015-12-04 11:25:47 +0100
commit7899b3969e0c281dd7a618277b9aba2b782f94d8 (patch)
tree3b9d78b11b97a73c022c3b08bd86ae19e337cf24 /src
parent45ee3a4f01d8d2d2377121f6d3e71b23980fe83e (diff)
downloadtotem-7899b3969e0c281dd7a618277b9aba2b782f94d8.tar.gz
playlist: Remove dead code
https://bugzilla.gnome.org/show_bug.cgi?id=750102
Diffstat (limited to 'src')
-rw-r--r--src/totem-playlist.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/totem-playlist.c b/src/totem-playlist.c
index b56c8e729..4cba0d619 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);