Changeset ebe615077be69d2768e0f2fa437826231cf99ad7

Show
Ignore:
Timestamp:
05/27/08 18:54:42 (3 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1211907282 +0300
git-parent:

[885bc36a823c7fefdf3ba055bf4d2d8267c036f0]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1211907181 +0300
Message:

Remove DecodeLanguage? (dead code)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • include/vlc_iso_lang.h

    r562773d rebe6150  
    4242VLC_EXPORT( const iso639_lang_t *, GetLang_2T, ( const char * ) ); 
    4343VLC_EXPORT( const iso639_lang_t *, GetLang_2B, ( const char * ) ); 
    44 VLC_EXPORT( const char *, DecodeLanguage, ( uint16_t ) ); 
    4544#if defined( __cplusplus ) 
    4645} 
  • src/text/iso_lang.c

    r562773d rebe6150  
    4444    { "Unknown", "Unknown", "??", "???", "???" }; 
    4545 
    46 /***************************************************************************** 
    47  * DecodeLanguage: gives the long language name from the two-letter 
    48  *                 ISO-639 code 
    49  *****************************************************************************/ 
    50 const char * DecodeLanguage( uint16_t i_code ) 
    51 { 
    52     const iso639_lang_t * p_lang; 
    53     uint8_t psz_code[3]; 
    54  
    55     psz_code[0] = i_code >> 8; 
    56     psz_code[1] = i_code & 0xff; 
    57     psz_code[2] = '\0'; 
    58  
    59     for( p_lang = p_languages; p_lang->psz_eng_name; p_lang++ ) 
    60     { 
    61         if( !memcmp( p_lang->psz_iso639_1, psz_code, 2 ) ) 
    62         { 
    63 # if 0 
    64             if( *p_lang->psz_native_name ) 
    65             { 
    66                 return p_lang->psz_native_name; 
    67             } 
    68 #endif 
    69  
    70             return _( p_lang->psz_eng_name ); 
    71         } 
    72     } 
    73  
    74     return _( "Unknown" ); 
    75 } 
    76  
    7746const iso639_lang_t * GetLang_1( const char * psz_code ) 
    7847{