[vlc-commits] qt: remove dead code
Thomas Guillem
git at videolan.org
Tue Apr 2 11:30:52 CEST 2019
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Apr 2 11:27:41 2019 +0200| [f714ecc62abb7f5f422952345e6cd26f8cdfacd6] | committer: Thomas Guillem
qt: remove dead code
Note: playlist import is implicitly done when opening a playlist file.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f714ecc62abb7f5f422952345e6cd26f8cdfacd6
---
modules/gui/qt/dialogs_provider.cpp | 17 -----------------
modules/gui/qt/dialogs_provider.hpp | 1 -
2 files changed, 18 deletions(-)
diff --git a/modules/gui/qt/dialogs_provider.cpp b/modules/gui/qt/dialogs_provider.cpp
index 4bb9118890..38a5a9fe33 100644
--- a/modules/gui/qt/dialogs_provider.cpp
+++ b/modules/gui/qt/dialogs_provider.cpp
@@ -597,23 +597,6 @@ void DialogsProvider::PLAppendDir()
/****************
* Playlist *
****************/
-void DialogsProvider::openAPlaylist()
-{
- QStringList urls = showSimpleOpen( qtr( "Open playlist..." ),
- EXT_FILTER_PLAYLIST );
- foreach( const QString &url, urls )
- {
- char* psz_path = vlc_uri2path(qtu( url ));
- if ( !psz_path )
- {
- msg_Warn( p_intf, "unable to load playlist '%s'", qtu( url ) );
- continue;
- }
- playlist_Import( THEPL, psz_path );
- free( psz_path );
- }
-}
-
void DialogsProvider::savePlayingToPlaylist()
{
static const struct
diff --git a/modules/gui/qt/dialogs_provider.hpp b/modules/gui/qt/dialogs_provider.hpp
index c234a1b32a..3b9f47a67f 100644
--- a/modules/gui/qt/dialogs_provider.hpp
+++ b/modules/gui/qt/dialogs_provider.hpp
@@ -166,7 +166,6 @@ public slots:
void openAndStreamingDialogs();
void openAndTranscodingDialogs();
- void openAPlaylist();
void savePlayingToPlaylist();
void loadSubtitlesFile();
More information about the vlc-commits
mailing list