Commit 3b1b0b72 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

DCP: remove unused XML validator

parent 31f25084
......@@ -723,22 +723,16 @@ int XmlFile::OpenXml()
{
char *psz_uri;
this->p_xml = xml_Create( this->p_demux );
if (! this->p_xml) {
return -1;
}
psz_uri = vlc_path2uri( this->s_path.c_str(), "file" );
this->p_stream = stream_UrlNew(this->p_demux, psz_uri );
free(psz_uri);
if( ! this->p_stream ) {
xml_Delete(this->p_xml );
return -1;
}
this->p_xmlReader = xml_ReaderCreate( this->p_xml, this->p_stream);
this->p_xmlReader = xml_ReaderCreate( this->p_demux, this->p_stream);
if( ! this->p_xmlReader ) {
stream_Delete( this->p_stream );
xml_Delete(this->p_xml );
return -1;
}
return 0;
......@@ -828,9 +822,6 @@ void XmlFile::CloseXml() {
stream_Delete( this->p_stream );
if( this->p_xmlReader )
xml_ReaderDelete( this->p_xmlReader );
if( this->p_xml )
xml_Delete( this->p_xml );
}
/*
......
......@@ -128,7 +128,6 @@ protected:
string s_path;
stream_t *p_stream;
xml_t *p_xml;
xml_reader_t *p_xmlReader;
int OpenXml();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment