[vlc-devel] commit: Remove DecodeLanguage (dead code) ( Rémi Denis-Courmont )
git version control
git at videolan.org
Tue May 27 18:53:18 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Tue May 27 19:53:01 2008 +0300| [ebe615077be69d2768e0f2fa437826231cf99ad7]
Remove DecodeLanguage (dead code)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ebe615077be69d2768e0f2fa437826231cf99ad7
---
include/vlc_iso_lang.h | 1 -
src/text/iso_lang.c | 31 -------------------------------
2 files changed, 0 insertions(+), 32 deletions(-)
diff --git a/include/vlc_iso_lang.h b/include/vlc_iso_lang.h
index ed984e5..51daac6 100644
--- a/include/vlc_iso_lang.h
+++ b/include/vlc_iso_lang.h
@@ -41,7 +41,6 @@ extern "C" {
VLC_EXPORT( const iso639_lang_t *, GetLang_1, ( const char * ) );
VLC_EXPORT( const iso639_lang_t *, GetLang_2T, ( const char * ) );
VLC_EXPORT( const iso639_lang_t *, GetLang_2B, ( const char * ) );
-VLC_EXPORT( const char *, DecodeLanguage, ( uint16_t ) );
#if defined( __cplusplus )
}
#endif
diff --git a/src/text/iso_lang.c b/src/text/iso_lang.c
index a6bacb6..885c581 100644
--- a/src/text/iso_lang.c
+++ b/src/text/iso_lang.c
@@ -43,37 +43,6 @@
static const iso639_lang_t unknown_language =
{ "Unknown", "Unknown", "??", "???", "???" };
-/*****************************************************************************
- * DecodeLanguage: gives the long language name from the two-letter
- * ISO-639 code
- *****************************************************************************/
-const char * DecodeLanguage( uint16_t i_code )
-{
- const iso639_lang_t * p_lang;
- uint8_t psz_code[3];
-
- psz_code[0] = i_code >> 8;
- psz_code[1] = i_code & 0xff;
- psz_code[2] = '\0';
-
- for( p_lang = p_languages; p_lang->psz_eng_name; p_lang++ )
- {
- if( !memcmp( p_lang->psz_iso639_1, psz_code, 2 ) )
- {
-# if 0
- if( *p_lang->psz_native_name )
- {
- return p_lang->psz_native_name;
- }
-#endif
-
- return _( p_lang->psz_eng_name );
- }
- }
-
- return _( "Unknown" );
-}
-
const iso639_lang_t * GetLang_1( const char * psz_code )
{
const iso639_lang_t *p_lang;
More information about the vlc-devel
mailing list