Removed unused code

svn-id: r46183
This commit is contained in:
Filippos Karapetis 2009-11-29 00:23:14 +00:00
parent 5f3e54fcb7
commit 67a96069a4
2 changed files with 0 additions and 22 deletions

View File

@ -163,22 +163,6 @@ int SongLibrary::removeSong(SongHandle handle) {
return retval;
}
void SongLibrary::resortSong(Song *song) {
if (_lib == song)
_lib = song->_next;
else {
Song *seeker = _lib;
while (seeker->_next && (seeker->_next != song))
seeker = seeker->_next;
if (seeker->_next)
seeker->_next = seeker->_next->_next;
}
addSong(song);
}
int SongLibrary::countSongs() {
Song *seeker = _lib;
int retval = 0;

View File

@ -145,12 +145,6 @@ public:
*/
int removeSong(SongHandle handle);
/**
* Removes a song from the library and sorts it in again; for use after renicing.
* @param son song to work on
*/
void resortSong(Song *song);
/**
* Counts the number of songs in a song library.
* @return the number of songs