mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
refactor(DatabaseHelper): cleanup unused function
This commit is contained in:
parent
d18b6ccb2a
commit
b4d7a9b8a5
@ -68,9 +68,6 @@ object DatabaseHelper {
|
|||||||
getWatchPosition(videoId)
|
getWatchPosition(videoId)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun isVideoWatchedBlocking(videoId: String, duration: Long) =
|
|
||||||
runBlocking { isVideoWatched(videoId, duration) }
|
|
||||||
|
|
||||||
suspend fun isVideoWatched(videoId: String, duration: Long): Boolean =
|
suspend fun isVideoWatched(videoId: String, duration: Long): Boolean =
|
||||||
withContext(Dispatchers.IO) {
|
withContext(Dispatchers.IO) {
|
||||||
val position = getWatchPosition(videoId) ?: return@withContext false
|
val position = getWatchPosition(videoId) ?: return@withContext false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user