aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sfx
diff options
context:
space:
mode:
authorFilippos Karapetis2009-11-29 00:23:14 +0000
committerFilippos Karapetis2009-11-29 00:23:14 +0000
commit67a96069a4838f87076ebe0fe9f96799d69a9f11 (patch)
tree85448f7f624000991dad6534885c2326ed8f9efb /engines/sci/sfx
parent5f3e54fcb734d7544fec94a0fe92698b8295a531 (diff)
downloadscummvm-rg350-67a96069a4838f87076ebe0fe9f96799d69a9f11.tar.gz
scummvm-rg350-67a96069a4838f87076ebe0fe9f96799d69a9f11.tar.bz2
scummvm-rg350-67a96069a4838f87076ebe0fe9f96799d69a9f11.zip
Removed unused code
svn-id: r46183
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
*/