From 97707d724dbaa2a136841b938b7f7a97a6617ac9 Mon Sep 17 00:00:00 2001 From: vfsfitvnm Date: Fri, 26 Aug 2022 11:04:41 +0200 Subject: [PATCH] Remove unused field from DetailedSong --- .../main/kotlin/it/vfsfitvnm/vimusic/models/DetailedSong.kt | 1 - .../vfsfitvnm/vimusic/models/DetailedSongWithContentLength.kt | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/kotlin/it/vfsfitvnm/vimusic/models/DetailedSong.kt b/app/src/main/kotlin/it/vfsfitvnm/vimusic/models/DetailedSong.kt index 31c12aa..e3acf72 100644 --- a/app/src/main/kotlin/it/vfsfitvnm/vimusic/models/DetailedSong.kt +++ b/app/src/main/kotlin/it/vfsfitvnm/vimusic/models/DetailedSong.kt @@ -11,7 +11,6 @@ open class DetailedSong( val artistsText: String? = null, val durationText: String, val thumbnailUrl: String?, - val likedAt: Long? = null, val totalPlayTimeMs: Long = 0, @Relation( entity = SongAlbumMap::class, diff --git a/app/src/main/kotlin/it/vfsfitvnm/vimusic/models/DetailedSongWithContentLength.kt b/app/src/main/kotlin/it/vfsfitvnm/vimusic/models/DetailedSongWithContentLength.kt index 706b2e1..47ccbae 100644 --- a/app/src/main/kotlin/it/vfsfitvnm/vimusic/models/DetailedSongWithContentLength.kt +++ b/app/src/main/kotlin/it/vfsfitvnm/vimusic/models/DetailedSongWithContentLength.kt @@ -10,7 +10,6 @@ class DetailedSongWithContentLength( artistsText: String? = null, durationText: String, thumbnailUrl: String?, - likedAt: Long? = null, totalPlayTimeMs: Long = 0, albumId: String?, artists: List?, @@ -21,4 +20,4 @@ class DetailedSongWithContentLength( projection = ["contentLength"] ) val contentLength: Long? -) : DetailedSong(id, title, artistsText, durationText, thumbnailUrl, likedAt, totalPlayTimeMs, albumId, artists) +) : DetailedSong(id, title, artistsText, durationText, thumbnailUrl, totalPlayTimeMs, albumId, artists)