Removed unused code

This commit is contained in:
CappielloAntonio 2021-08-02 17:10:37 +02:00
parent 5248e897dd
commit 8de8ce2755
7 changed files with 10 additions and 475 deletions

View file

@ -9,10 +9,6 @@ import java.util.List;
public class QueueUtil {
private static final String TAG = "QueueUtil";
public static Queue getQueueElementFromSong(Song song, int startingPosition) {
return new Queue(startingPosition, song.getId(), song.getTitle(), song.getAlbumId(), song.getAlbumName(), song.getArtistId(), song.getArtistName(), song.getPrimary(), song.getDuration());
}
public static List<Queue> getQueueElementsFromSongs(List<Song> songs) {
int counter = 0;
List<Queue> queue = new ArrayList<>();
@ -24,29 +20,4 @@ public class QueueUtil {
return queue;
}
public static List<String> getIDsFromSongs(List<Song> songs) {
List<String> IDs = new ArrayList<>();
for (Song song : songs) {
IDs.add(song.getId());
}
return IDs;
}
public static List<Song> orderSongByIdList(List<String> IDs, List<Song> songs) {
List<Song> orderedSong = new ArrayList<>();
for (String ID : IDs) {
for (Song song : songs) {
if (ID.equals(song.getId())) {
orderedSong.add(song);
break;
}
}
}
return orderedSong;
}
}