[vlc-commits] commit: xtag: don't pretend to support DTD and catalogs ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Thu Aug 5 18:08:36 CEST 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Aug  5 18:58:25 2010 +0300| [f37d226983f37e6cabd11176d8a9d4dbfb528f55] | committer: Rémi Denis-Courmont 

xtag: don't pretend to support DTD and catalogs

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

 modules/misc/xml/xtag.c |   47 -----------------------------------------------
 1 files changed, 0 insertions(+), 47 deletions(-)

diff --git a/modules/misc/xml/xtag.c b/modules/misc/xml/xtag.c
index cb2936b..955037c 100644
--- a/modules/misc/xml/xtag.c
+++ b/modules/misc/xml/xtag.c
@@ -83,17 +83,11 @@ typedef struct _XTagParser
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/
-static int  Open ( vlc_object_t * );
-static void Close( vlc_object_t * );
 static int ReaderOpen( vlc_object_t * );
 static void ReaderClose( vlc_object_t * );
 
 vlc_module_begin ()
     set_description( N_("Simple XML Parser") )
-    set_capability( "xml", 5 )
-    set_callbacks( Open, Close )
-
-    add_submodule()
     set_capability( "xml reader", 5 )
     set_callbacks( ReaderOpen, ReaderClose )
 vlc_module_end ()
@@ -114,9 +108,6 @@ static int ReaderNextAttr( xml_reader_t * );
 
 static int ReaderUseDTD ( xml_reader_t *, bool );
 
-static void CatalogLoad( xml_t *, const char * );
-static void CatalogAdd( xml_t *, const char *, const char *, const char * );
-
 static XTag *xtag_new_parse( const char *, int );
 static char *xtag_get_name( XTag * );
 #if 0
@@ -131,44 +122,6 @@ static int xtag_snprint( char *, int, XTag * );
 #endif
 
 /*****************************************************************************
- * Module initialization
- *****************************************************************************/
-static int Open( vlc_object_t *p_this )
-{
-    xml_t *p_xml = (xml_t *)p_this;
-
-    p_xml->pf_catalog_load = CatalogLoad;
-    p_xml->pf_catalog_add  = CatalogAdd;
-
-    return VLC_SUCCESS;
-}
-
-/*****************************************************************************
- * Module deinitialization
- *****************************************************************************/
-static void Close( vlc_object_t *p_this )
-{
-    VLC_UNUSED(p_this);
-    return;
-}
-
-/*****************************************************************************
- * Catalogue functions
- *****************************************************************************/
-static void CatalogLoad( xml_t *p_xml, const char *psz_filename )
-{
-    VLC_UNUSED(psz_filename);
-    msg_Dbg( p_xml, "catalog support not implemented" );
-}
-
-static void CatalogAdd( xml_t *p_xml, const char *psz_arg1,
-                          const char *psz_arg2, const char *psz_filename )
-{
-    VLC_UNUSED(p_xml); VLC_UNUSED(psz_arg1); VLC_UNUSED(psz_arg2);
-    VLC_UNUSED(psz_filename);
-}
-
-/*****************************************************************************
  * Reader functions
  *****************************************************************************/
 static int ReaderOpen( vlc_object_t *p_this )



More information about the vlc-commits mailing list