diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-09-22 02:13:26 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-22 02:13:26 -0700 |
commit | 51405e174f4ea1ee58610012837241c928335057 (patch) | |
tree | ce8397587182e7c427e23b34e2016832ef11c1a0 /src/songvec.c | |
parent | 77f98f37245f7d8ea2b0182b326420b6d6455cad (diff) | |
parent | 88424d256390e9c8aad24ed185381dc1297f51d5 (diff) | |
download | mpd-51405e174f4ea1ee58610012837241c928335057.tar.gz mpd-51405e174f4ea1ee58610012837241c928335057.tar.xz mpd-51405e174f4ea1ee58610012837241c928335057.zip |
Merge branch 'ew/directory'
* ew/directory:
songvec: remove songvec_prune
directory: update do its work inside a thread
directory: use enum update_return for return values
Diffstat (limited to '')
-rw-r--r-- | src/songvec.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/songvec.c b/src/songvec.c index ac84e7f8e..d416573ce 100644 --- a/src/songvec.c +++ b/src/songvec.c @@ -96,26 +96,3 @@ int songvec_write(struct songvec *sv, int fd, int extra) return 0; } - -/* - * Removes missing songs from a songvec. This function is only temporary - * as updating will be moved into a thread and updating shared memory... - */ -#include "path.h" -#include "ls.h" -void songvec_prune(struct songvec *sv) -{ - int i; - char tmp[MPD_PATH_MAX]; - struct stat sb; - - for (i = sv->nr; --i >= 0; ) { - Song *song = sv->base[i]; - assert(song); - if (!myStat(get_song_url(tmp, song), &sb)) - continue; - songvec_delete(sv, song); - freeSong(song); - i = sv->nr; - } -} |