Delete unused methods
This commit is contained in:
parent
ad4240ab45
commit
378fa81b26
|
|
@ -17,9 +17,6 @@ fun ZonedDateTime.isNotExpired(duration: Duration) = !this.isExpired(duration)
|
|||
|
||||
fun ZonedDateTime.isNotExpired(currentDate: ZonedDateTime = ZonedDateTime.now()) = !this.isExpired(currentDate)
|
||||
|
||||
fun minusYearsAndGetFirstDayOfYear(numberOfYears: Long): ZonedDateTime =
|
||||
ZonedDateTime.now().minusYears(numberOfYears).withDayOfYear(1)
|
||||
|
||||
fun ZonedDateTime.equals(arg: ZonedDateTime, maxDiff: Duration) =
|
||||
Duration.between(this, arg) <= maxDiff
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
package ru.touchinstinct.utils
|
||||
|
||||
import java.util.UUID
|
||||
|
||||
fun getRandomUuidWithoutDashes() = UUID.randomUUID().toString().replace("-", "")
|
||||
|
||||
fun getRandomUuid() = UUID.randomUUID().toString()
|
||||
Loading…
Reference in New Issue