Delete unused methods

This commit is contained in:
Mikhail Yasnov 2020-04-28 23:15:28 +03:00
parent ad4240ab45
commit 378fa81b26
2 changed files with 0 additions and 10 deletions

View File

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

View File

@ -1,7 +0,0 @@
package ru.touchinstinct.utils
import java.util.UUID
fun getRandomUuidWithoutDashes() = UUID.randomUUID().toString().replace("-", "")
fun getRandomUuid() = UUID.randomUUID().toString()