diff --git a/new-player/src/main/java/net/newpipe/newplayer/data/VideoSize.kt b/new-player/src/main/java/net/newpipe/newplayer/data/VideoSize.kt index a138c16..b80bf6a 100644 --- a/new-player/src/main/java/net/newpipe/newplayer/data/VideoSize.kt +++ b/new-player/src/main/java/net/newpipe/newplayer/data/VideoSize.kt @@ -46,17 +46,6 @@ internal data class VideoSize( override fun compareTo(other: VideoSize) = width * height - other.width * other.height - override fun equals(other: Any?) = - when (other) { - is VideoSize -> - other.width == this.width && other.height == this.height && pixelWidthHeightRatio == other.pixelWidthHeightRatio - - else -> false - } - - override fun hashCode() = - width + height * 999999 + (pixelWidthHeightRatio*10000).toInt() - fun getRatio() = (width * pixelWidthHeightRatio) / height