Remove unused iconv handle
authorRémi Denis-Courmont <rem@videolan.org>
Sun, 12 Nov 2006 16:05:11 +0000 (16:05 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sun, 12 Nov 2006 16:05:11 +0000 (16:05 +0000)
modules/gui/skins2/vars/playtree.cpp
modules/gui/skins2/vars/playtree.hpp

index 07fe03a..ca1bc37 100644 (file)
@@ -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()
index 5812c59..b1d1db6 100644 (file)
@@ -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();