remove dead code

This commit is contained in:
Adrian Ulrich 2016-02-13 16:38:31 +01:00
parent b3ea41f46a
commit 4156c309c4

View File

@ -310,24 +310,6 @@ public class MediaUtils {
}
}
/**
* Shuffle an array using Fisher-Yates algorithm.
*
* @param list The array. It will be shuffled in place.
* @param end Only elements before this index will be shuffled.
*/
public static void shuffle(Song[] list, int end)
{
Assert.assertTrue(end <= list.length && end >= 0);
Random random = getRandom();
for (int i = end; --i != -1; ) {
int j = random.nextInt(i + 1);
Song tmp = list[j];
list[j] = list[i];
list[i] = tmp;
}
}
/**
* Shuffle a Song list using Collections.shuffle().
*