[vlc-commits] playlist: remove dead code

Rémi Denis-Courmont git at videolan.org
Tue Apr 18 20:56:27 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Apr 17 23:15:06 2017 +0300| [3f23c940bbb2574f25d475ab13efd1badc3e7b23] | committer: Rémi Denis-Courmont

playlist: remove dead code

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3f23c940bbb2574f25d475ab13efd1badc3e7b23
---

 modules/demux/playlist/playlist.c | 12 ------------
 modules/demux/playlist/playlist.h |  2 --
 2 files changed, 14 deletions(-)

diff --git a/modules/demux/playlist/playlist.c b/modules/demux/playlist/playlist.c
index 0f304edf1a..dca07f5b19 100644
--- a/modules/demux/playlist/playlist.c
+++ b/modules/demux/playlist/playlist.c
@@ -256,15 +256,3 @@ char *ProcessMRL(const char *str, const char *base)
 
     return abs;
 }
-
-/**
- * Checks stream Content-Type against a known one
- */
-bool CheckMimeType( stream_t *stream, const char *mime_type )
-{
-    char* stream_mtype = stream_MimeType( stream );
-    bool const match = stream_mtype && !strcasecmp( mime_type, stream_mtype );
-
-    free( stream_mtype );
-    return match;
-}
diff --git a/modules/demux/playlist/playlist.h b/modules/demux/playlist/playlist.h
index 6a0a5d9720..65b7697938 100644
--- a/modules/demux/playlist/playlist.h
+++ b/modules/demux/playlist/playlist.h
@@ -77,8 +77,6 @@ int Import_Dir ( vlc_object_t * );
 
 extern input_item_t * GetCurrentItem(demux_t *p_demux);
 
-bool CheckMimeType( stream_t * p_stream, const char * psz_ctype );
-
 #define CHECK_FILE() \
 do { \
     if( vlc_stream_Control( ((demux_t *)p_this)->s, \



More information about the vlc-commits mailing list