Commit be006b86 authored by Avuton Olrich's avatar Avuton Olrich

[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
parent 6b4fea8d
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment