]> git.sesse.net Git - vlc/commitdiff
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 07fe03aeb397bf76b01f8ad63a39e6a8086a6f48..ca1bc3748c12c8d5c1248018e060ecd4afed8eef 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 5812c5988dbcb075ecd7a1bdff00fd868f5956d6..b1d1db675bdd0c0a59e7cd5557b9ec08761d4906 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();