aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/dbUtils.c35
-rw-r--r--src/dbUtils.h2
2 files changed, 0 insertions, 37 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);
-}
diff --git a/src/dbUtils.h b/src/dbUtils.h
index 1e9121bfb..1382c243e 100644
--- a/src/dbUtils.h
+++ b/src/dbUtils.h
@@ -49,6 +49,4 @@ int
listAllUniqueTags(struct client *client, int type,
const struct locate_item_list *criteria);
-void printSavedMemoryFromFilenames(void);
-
#endif