refactor: remove unused function

This commit is contained in:
Gauthier Roebroeck 2023-01-17 15:04:49 +08:00
parent eb3cea3425
commit a8746ca27d

View file

@ -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)