dbUtils: removed printSavedMemoryFromFilenames()

The function is unused.
This commit is contained in:
Max Kellermann 2009-03-15 18:21:53 +01:00
parent 1308f5f669
commit 9e30dfb9c1
2 changed files with 0 additions and 37 deletions

View File

@ -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);
}

View File

@ -49,6 +49,4 @@ int
listAllUniqueTags(struct client *client, int type,
const struct locate_item_list *criteria);
void printSavedMemoryFromFilenames(void);
#endif