mirror of
https://github.com/gotson/komga.git
synced 2026-05-08 21:00:16 +02:00
refactor: remove unused function
This commit is contained in:
parent
eb3cea3425
commit
a8746ca27d
1 changed files with 0 additions and 4 deletions
|
|
@ -12,13 +12,9 @@ import org.jooq.impl.DSL
|
|||
import org.springframework.data.domain.Sort
|
||||
import java.time.LocalDateTime
|
||||
import java.time.ZoneId
|
||||
import java.time.ZoneOffset
|
||||
|
||||
fun Field<String>.noCase() = this.collate("NOCASE")
|
||||
|
||||
fun LocalDateTime.toUTC(): LocalDateTime =
|
||||
atZone(ZoneId.systemDefault()).withZoneSameInstant(ZoneOffset.UTC).toLocalDateTime()
|
||||
|
||||
fun Sort.toOrderBy(sorts: Map<String, Field<out Any>>): List<SortField<out Any>> =
|
||||
this.mapNotNull {
|
||||
it.toSortField(sorts)
|
||||
|
|
|
|||
Loading…
Reference in a new issue