diff options
author | Max Kellermann <max@duempel.org> | 2009-03-15 18:21:53 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-03-15 18:21:53 +0100 |
commit | 9e30dfb9c195dab50c4d0173885a94e7b81d45bd (patch) | |
tree | 753477ec8b85f2dce98d6c1d85e253172fbfafb1 /src/dbUtils.c | |
parent | 1308f5f669a938963334a34c3ac75e6dcddf077f (diff) | |
download | mpd-9e30dfb9c195dab50c4d0173885a94e7b81d45bd.tar.gz mpd-9e30dfb9c195dab50c4d0173885a94e7b81d45bd.tar.xz mpd-9e30dfb9c195dab50c4d0173885a94e7b81d45bd.zip |
dbUtils: removed printSavedMemoryFromFilenames()
The function is unused.
Diffstat (limited to '')
-rw-r--r-- | src/dbUtils.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/dbUtils.c b/src/dbUtils.c index 80d7c8c48..f89148c1b 100644 --- a/src/dbUtils.c +++ b/src/dbUtils.c @@ -27,7 +27,6 @@ #include "song_print.h" #include "tag.h" #include "strset.h" -#include "log.h" #include "stored_playlist.h" #include <glib.h> @@ -305,37 +304,3 @@ int listAllUniqueTags(struct client *client, int type, return ret; } - -static int -sumSavedFilenameMemoryInDirectory(struct directory *dir, void *data) -{ - int *sum = data; - - if (directory_is_root(dir)) - return 0; - - *sum += (strlen(directory_get_path(dir)) + 1 - - sizeof(struct directory *)) * dir->songs.nr; - - return 0; -} - -static int -sumSavedFilenameMemoryInSong(struct song *song, void *data) -{ - int *sum = data; - - *sum += strlen(song->url) + 1; - - return 0; -} - -void printSavedMemoryFromFilenames(void) -{ - int sum = 0; - - db_walk(NULL, sumSavedFilenameMemoryInSong, - sumSavedFilenameMemoryInDirectory, (void *)&sum); - - DEBUG("saved memory from filenames: %i\n", sum); -} |