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

Remove unused iconv handle

parent ee5cf38b
......@@ -37,24 +37,11 @@ Playtree::Playtree( intf_thread_t *pIntf ): VarTree( pIntf )
i_items_to_append = 0;
// Try to guess the current charset
char *pCharset;
vlc_current_charset( &pCharset );
iconvHandle = vlc_iconv_open( "UTF-8", pCharset );
msg_Dbg( pIntf, "using character encoding: %s", pCharset );
free( pCharset );
if( iconvHandle == (vlc_iconv_t) - 1 )
{
msg_Warn( pIntf, "unable to do requested conversion" );
}
buildTree();
}
Playtree::~Playtree()
{
if( iconvHandle != (vlc_iconv_t) - 1 ) vlc_iconv_close( iconvHandle );
}
void Playtree::delSelected()
......
......@@ -58,8 +58,6 @@ class Playtree: public VarTree
private:
/// VLC playlist object
playlist_t *m_pPlaylist;
/// Iconv handle
vlc_iconv_t iconvHandle;
/// Build the list from the VLC playlist
void buildTree();
......
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