diff options
author | Avuton Olrich <avuton@gmail.com> | 2006-07-15 04:51:31 +0000 |
---|---|---|
committer | Avuton Olrich <avuton@gmail.com> | 2006-07-15 04:51:31 +0000 |
commit | be006b86ed2802cd76b5b39be8adbd2d9c3c4ce7 (patch) | |
tree | e3ed1038de9d24b7262b682b6dbd0db38ba65298 /src | |
parent | 6b4fea8d5ccbdcfb379da2ec512a1d238f459673 (diff) | |
download | mpd-be006b86ed2802cd76b5b39be8adbd2d9c3c4ce7.tar.gz mpd-be006b86ed2802cd76b5b39be8adbd2d9c3c4ce7.tar.xz mpd-be006b86ed2802cd76b5b39be8adbd2d9c3c4ce7.zip |
[CLEANUP] Remove unused code
Fix whitespace->tabs
Use static where possible
git-svn-id: https://svn.musicpd.org/mpd/trunk@4346 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r-- | src/tag.c | 18 | ||||
-rw-r--r-- | src/tag.h | 5 |
2 files changed, 1 insertions, 22 deletions
@@ -493,7 +493,7 @@ void clearItemsFromMpdTag(MpdTag * tag, int type) { } } -void clearMpdTag(MpdTag * tag) { +static void clearMpdTag(MpdTag * tag) { int i; for(i = 0; i < tag->numOfItems; i++) { @@ -592,19 +592,3 @@ void addItemToMpdTagWithLen(MpdTag * tag, int itemType, char * value, int len) { appendToTagItems(tag, itemType, value, len); } - -char * getNextItemFromMpdTag(MpdTag * tag, int itemType, int * last) { - int i = 0; - - if(last && *last >=0) i = *last+1; - - for(i = 0; i < tag->numOfItems; i++) { - if(itemType == tag->items[i].type) { - if(last) *last = i; - return tag->items[i].value; - } - i++; - } - - return NULL; -} @@ -75,8 +75,6 @@ void initTagConfig(); void clearItemsFromMpdTag(MpdTag * tag, int itemType); -void clearMpdTag(MpdTag * tag); - void freeMpdTag(MpdTag * tag); void addItemToMpdTagWithLen(MpdTag * tag, int itemType, char * value, int len); @@ -90,7 +88,4 @@ MpdTag * mpdTagDup(MpdTag * tag); int mpdTagsAreEqual(MpdTag * tag1, MpdTag * tag2); -/* *last shoudl be initialzed to -1 before calling this function */ -char * getNextItemFromMpdTag(MpdTag * tag, int itemType, int * last); - #endif |