Eric Wong
554f4a9fb9
songvec: songvec_delete takes a const Song pointer
...
We don't modify the Song when we delete it
2008-09-29 13:17:30 +02:00
Eric Wong
6075119f0a
songvec_free => songvec_destroy
...
"free" implies the songvec structure itself is freed,
which is not the case.
2008-09-29 12:17:13 +02:00
Eric Wong
ef35926083
songvec: avoid free(NULL)
...
Potentially broken free() implementations don't like it
2008-09-23 22:38:43 +02:00
Eric Wong
28d39948d7
songvec: remove songvec_prune
...
Any pruned files will be noticed during update and pruned
from the live database, so this inefficient function can
go away and never come back.
2008-09-23 22:37:33 +02:00
Eric Wong
0bec1d3807
Replace SongList with struct songvec
...
Our linked-list implementation is wasteful and the
SongList isn't modified enough to benefit from being a linked
list. So use a more compact array of song pointers which
saves ~200K on a library with ~9K songs (on x86-32).
2008-09-23 20:48:39 +02:00