Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
9e30dfb9
Commit
9e30dfb9
authored
Mar 15, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbUtils: removed printSavedMemoryFromFilenames()
The function is unused.
parent
1308f5f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
37 deletions
+0
-37
dbUtils.c
src/dbUtils.c
+0
-35
dbUtils.h
src/dbUtils.h
+0
-2
No files found.
src/dbUtils.c
View file @
9e30dfb9
...
...
@@ -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
);
}
src/dbUtils.h
View file @
9e30dfb9
...
...
@@ -49,6 +49,4 @@ int
listAllUniqueTags
(
struct
client
*
client
,
int
type
,
const
struct
locate_item_list
*
criteria
);
void
printSavedMemoryFromFilenames
(
void
);
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment