[vlc-commits] xspf: remove dead code

Rémi Denis-Courmont git at videolan.org
Sun Dec 20 18:42:20 CET 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec 20 19:42:09 2015 +0200| [e0031b4ec8bb2117196b89b7853cc584998bc545] | committer: Rémi Denis-Courmont

xspf: remove dead code

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

 modules/demux/playlist/playlist.h |   11 -----------
 1 file changed, 11 deletions(-)

diff --git a/modules/demux/playlist/playlist.h b/modules/demux/playlist/playlist.h
index 7483903..3a8090e 100644
--- a/modules/demux/playlist/playlist.h
+++ b/modules/demux/playlist/playlist.h
@@ -108,17 +108,6 @@ do { \
         return VLC_EGENERIC; \
     STANDARD_DEMUX_INIT_MSG( msg );
 
-#define DEMUX_BY_EXTENSION_OR_MIMETYPE( ext, mime, msg ) \
-    demux_t *p_demux = (demux_t *)p_this; \
-    CHECK_FILE(); \
-    char* demux_mimetype = stream_ContentType( p_demux->s ); \
-    if(!( demux_IsPathExtension( p_demux, ext ) || (demux_mimetype && !strcasecmp( mime, demux_mimetype )) )) { \
-        free( demux_mimetype ); \
-        return VLC_EGENERIC; \
-    } \
-    free( demux_mimetype ); \
-    STANDARD_DEMUX_INIT_MSG( msg );
-
 #define CHECK_PEEK( zepeek, size ) do { \
     if( stream_Peek( p_demux->s , &zepeek, size ) < size ){ \
         msg_Dbg( p_demux, "not enough data" ); return VLC_EGENERIC; } } while(0)



More information about the vlc-commits mailing list