aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvuton Olrich <avuton@gmail.com>2006-07-15 04:51:31 +0000
committerAvuton Olrich <avuton@gmail.com>2006-07-15 04:51:31 +0000
commitbe006b86ed2802cd76b5b39be8adbd2d9c3c4ce7 (patch)
treee3ed1038de9d24b7262b682b6dbd0db38ba65298
parent6b4fea8d5ccbdcfb379da2ec512a1d238f459673 (diff)
downloadmpd-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
-rw-r--r--src/tag.c18
-rw-r--r--src/tag.h5
2 files changed, 1 insertions, 22 deletions
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