summaryrefslogtreecommitdiffstats
path: root/apps/metadata/mp3.c
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-08-01 19:52:54 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-08-01 19:52:54 +0000
commit1ace06a67d5ec4df3a0295a341124677782baf70 (patch)
tree9ba4ff6fffe72cacda37e4c9e977b1b23f68084c /apps/metadata/mp3.c
parentfaf37f9d216c76db1ff8e1ba5aca6c69365bc9c6 (diff)
downloadrockbox-1ace06a67d5ec4df3a0295a341124677782baf70.tar.gz
rockbox-1ace06a67d5ec4df3a0295a341124677782baf70.zip
Metadata parser: make adjust_mp3entry() not depend on id3_is_genre_string(), so there's no need to compare the string to the whole genre array (thanks to Mikael Magnusson)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22105 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/metadata/mp3.c')
-rw-r--r--apps/metadata/mp3.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/apps/metadata/mp3.c b/apps/metadata/mp3.c
index 20596b1961..21cdeff3fc 100644
--- a/apps/metadata/mp3.c
+++ b/apps/metadata/mp3.c
@@ -94,18 +94,6 @@ char* id3_get_num_genre(unsigned int genre_num)
return NULL;
}
-/* True if the string is from the "genres" array */
-bool id3_is_genre_string(const char *string)
-{
- unsigned int i;
-
- for(i=0; i < ARRAYLEN(genres); i++)
- if(genres[i] == string)
- return true;
-
- return false;
-}
-
/*
HOW TO ADD ADDITIONAL ID3 VERSION 2 TAGS
Code and comments by Thomas Paul Diffenbach