mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-01-22 23:17:00 +00:00
Resolve TODO in indexOf(...)
PlayQueueItem overrides equals and hashCode, so using indexOf is perfectly fine.
This commit is contained in:
parent
775fbc9a75
commit
e8eeac6735
@ -196,8 +196,6 @@ public abstract class PlayQueue implements Serializable {
|
|||||||
* @return the index of the given item
|
* @return the index of the given item
|
||||||
*/
|
*/
|
||||||
public int indexOf(@NonNull final PlayQueueItem item) {
|
public int indexOf(@NonNull final PlayQueueItem item) {
|
||||||
// referential equality, can't think of a better way to do this
|
|
||||||
// todo: better than this
|
|
||||||
return streams.indexOf(item);
|
return streams.indexOf(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user