From be006b86ed2802cd76b5b39be8adbd2d9c3c4ce7 Mon Sep 17 00:00:00 2001 From: Avuton Olrich Date: Sat, 15 Jul 2006 04:51:31 +0000 Subject: [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 --- src/tag.c | 18 +----------------- src/tag.h | 5 ----- 2 files changed, 1 insertion(+), 22 deletions(-) (limited to 'src') diff --git a/src/tag.c b/src/tag.c index 425b9742a..c1896c422 100644 --- a/src/tag.c +++ b/src/tag.c @@ -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; -} diff --git a/src/tag.h b/src/tag.h index f0afba03d..4ee16ded1 100644 --- a/src/tag.h +++ b/src/tag.h @@ -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 -- cgit v1.2.3