diff options
author | Nils Wallménius <nils@rockbox.org> | 2007-01-19 15:55:11 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2007-01-19 15:55:11 +0000 |
commit | faba818e1d0bd63a3c49491bb6c466422bad5395 (patch) | |
tree | 20b96d013f24ead4a8d2ea23d22799fe64fbada9 /firmware/common | |
parent | 00a3fc7ec097da17080914af76ca7f3b90a965f2 (diff) |
Comment out an unused function and make another one static to save a few bytes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12073 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common')
-rw-r--r-- | firmware/common/unicode.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/common/unicode.c b/firmware/common/unicode.c index 1dc7eedc3e..34c11369f2 100644 --- a/firmware/common/unicode.c +++ b/firmware/common/unicode.c @@ -45,7 +45,7 @@ static const char cp_2_table[NUM_CODEPAGES] = }; /* Load codepage file into memory */ -int load_cp_table(int cp) +static int load_cp_table(int cp) { int i=0; int table = cp_2_table[cp]; @@ -213,6 +213,7 @@ unsigned char* utf16BEdecode(const unsigned char *utf16, unsigned char *utf8, return utf8; } +#if 0 /* currently unused */ /* Recode any UTF-16 string to UTF-8 */ unsigned char* utf16decode(const unsigned char *utf16, unsigned char *utf8, unsigned int count) @@ -231,6 +232,7 @@ unsigned char* utf16decode(const unsigned char *utf16, unsigned char *utf8, return utf16BEdecode(utf16, utf8, count); } } +#endif /* Return the number of UTF-8 chars in a string */ unsigned long utf8length(const unsigned char *utf8) |