aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sfx
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/sfx')
-rw-r--r--engines/sci/sfx/songlib.cpp16
-rw-r--r--engines/sci/sfx/songlib.h6
2 files changed, 0 insertions, 22 deletions
diff --git a/engines/sci/sfx/songlib.cpp b/engines/sci/sfx/songlib.cpp
index 1317988e2f..c30478d50d 100644
--- a/engines/sci/sfx/songlib.cpp
+++ b/engines/sci/sfx/songlib.cpp
@@ -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;
diff --git a/engines/sci/sfx/songlib.h b/engines/sci/sfx/songlib.h
index 53b32e6747..97c8ec8cc2 100644
--- a/engines/sci/sfx/songlib.h
+++ b/engines/sci/sfx/songlib.h
@@ -146,12 +146,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
*/