mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-30 14:14:43 +00:00
Removed unused code
svn-id: r46183
This commit is contained in:
parent
5f3e54fcb7
commit
67a96069a4
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user