From 1974b68dcda38308c131ed383bd16982affc9880 Mon Sep 17 00:00:00 2001 From: nkorslund Date: Sat, 12 Jul 2008 20:41:06 +0000 Subject: [PATCH] Removed commented code git-svn-id: https://openmw.svn.sourceforge.net/svnroot/openmw/trunk@23 ea6a568a-9f4f-0410-981a-c910a81bb256 --- sound/music.d | 51 +-------------------------------------------------- 1 file changed, 1 insertion(+), 50 deletions(-) diff --git a/sound/music.d b/sound/music.d index 76f551a8f..3bb06bd6c 100644 --- a/sound/music.d +++ b/sound/music.d @@ -55,18 +55,7 @@ struct MusicManager throw new SoundException(name ~ " Jukebox", msg); } - /* KILLME - // Used when randomizing playlist - struct rndListStruct - { - char[] entry; - bool used; - } - rndListStruct[] rndList; - */ - - // TODO: How do we handle the play list? Randomize should be an - // option. We could also support things like M3U files, etc. + // List of songs to play char[][] playlist; int index; // Index of next song to play @@ -141,44 +130,6 @@ struct MusicManager playlist[idx] = s; } } - /* KILLME - int left = playlist.length; - rndList.length = left; - - foreach(int i, ref s; rndList) - { - s.used = false; - s.entry = playlist[i]; - } - - while(left--) - { - int index = rnd.randInt(0,left); - int i = 0; - foreach(ref s; rndList) - { - // Skip the ones we have used already - if(s.used) continue; - - // Is this the correct index? - if(i == index) - { - s.used = true; - playlist[left] = s.entry; - break; - } - i++; - } - } - - // Check that we don't replay the previous song, if the caller - // requested this. - if(checklast && playlist[0] == last) - { - playlist[0] = playlist[$-1]; - playlist[$-1] = last; - } - */ // Skip to the next track void playNext()