Skip to content

Commit e8eeac6

Browse files
committed
Resolve TODO in indexOf(...)
PlayQueueItem overrides equals and hashCode, so using indexOf is perfectly fine.
1 parent 775fbc9 commit e8eeac6

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

app/src/main/java/org/schabi/newpipe/player/playqueue/PlayQueue.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,6 @@ public PlayQueueItem getItem(final int index) {
196196
* @return the index of the given item
197197
*/
198198
public int indexOf(@NonNull final PlayQueueItem item) {
199-
// referential equality, can't think of a better way to do this
200-
// todo: better than this
201199
return streams.indexOf(item);
202200
}
203201

0 commit comments

Comments
 (0)