refactor: remove unused function

This commit is contained in:
Gauthier Roebroeck 2022-03-03 11:04:28 +08:00
parent cf6d26196f
commit d10e14bc19

View file

@ -59,10 +59,6 @@ data class KomgaUser(
else -> null
}
fun canAccessBook(book: Book): Boolean {
return sharedAllLibraries || sharedLibrariesIds.any { it == book.libraryId }
}
fun canAccessLibrary(libraryId: String): Boolean =
sharedAllLibraries || sharedLibrariesIds.any { it == libraryId }