remove dead code
This commit is contained in:
parent
b3ea41f46a
commit
4156c309c4
@ -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().
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user