Commit 2a8a5de2 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

RSS: remove unused XML validator

parent 39c3f27b
...@@ -887,7 +887,6 @@ static rss_feed_t* FetchRSS( filter_t *p_filter ) ...@@ -887,7 +887,6 @@ static rss_feed_t* FetchRSS( filter_t *p_filter )
filter_sys_t *p_sys = p_filter->p_sys; filter_sys_t *p_sys = p_filter->p_sys;
stream_t *p_stream; stream_t *p_stream;
xml_t *p_xml;
xml_reader_t *p_xml_reader; xml_reader_t *p_xml_reader;
int i_feed; int i_feed;
...@@ -901,14 +900,6 @@ static rss_feed_t* FetchRSS( filter_t *p_filter ) ...@@ -901,14 +900,6 @@ static rss_feed_t* FetchRSS( filter_t *p_filter )
if( !p_feeds ) if( !p_feeds )
return NULL; return NULL;
p_xml = xml_Create( p_filter );
if( !p_xml )
{
msg_Err( p_filter, "Failed to open XML parser" );
free( p_feeds );
return NULL;
}
/* Fetch all feeds and parse them */ /* Fetch all feeds and parse them */
for( i_feed = 0; i_feed < i_feeds; i_feed++ ) for( i_feed = 0; i_feed < i_feeds; i_feed++ )
{ {
...@@ -937,7 +928,7 @@ static rss_feed_t* FetchRSS( filter_t *p_filter ) ...@@ -937,7 +928,7 @@ static rss_feed_t* FetchRSS( filter_t *p_filter )
goto error; goto error;
} }
p_xml_reader = xml_ReaderCreate( p_xml, p_stream ); p_xml_reader = xml_ReaderCreate( p_filter, p_stream );
if( !p_xml_reader ) if( !p_xml_reader )
{ {
msg_Err( p_filter, "Failed to open %s for parsing", p_feed->psz_url ); msg_Err( p_filter, "Failed to open %s for parsing", p_feed->psz_url );
...@@ -959,7 +950,6 @@ static rss_feed_t* FetchRSS( filter_t *p_filter ) ...@@ -959,7 +950,6 @@ static rss_feed_t* FetchRSS( filter_t *p_filter )
stream_Delete( p_stream ); stream_Delete( p_stream );
} }
xml_Delete( p_xml );
return p_feeds; return p_feeds;
error: error:
...@@ -968,8 +958,6 @@ error: ...@@ -968,8 +958,6 @@ error:
xml_ReaderDelete( p_xml_reader ); xml_ReaderDelete( p_xml_reader );
if( p_stream ) if( p_stream )
stream_Delete( p_stream ); stream_Delete( p_stream );
if( p_xml )
xml_Delete( p_xml );
return NULL; return NULL;
} }
......
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