From 67a96069a4838f87076ebe0fe9f96799d69a9f11 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 29 Nov 2009 00:23:14 +0000 Subject: Removed unused code svn-id: r46183 --- engines/sci/sfx/songlib.cpp | 16 ---------------- engines/sci/sfx/songlib.h | 6 ------ 2 files changed, 22 deletions(-) (limited to 'engines/sci/sfx') 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 @@ -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 -- cgit v1.2.3