From 48d5c5519e92af27aba77de7da0bcaa2a93c6f98 Mon Sep 17 00:00:00 2001 From: vendelieu Date: Thu, 19 Dec 2024 22:51:20 +0300 Subject: [PATCH] remove pic storage --- .../src/jvmTest/kotlin/utils/RandomPicResource.kt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/telegram-bot/src/jvmTest/kotlin/utils/RandomPicResource.kt b/telegram-bot/src/jvmTest/kotlin/utils/RandomPicResource.kt index df13196bac..70cb8370d6 100644 --- a/telegram-bot/src/jvmTest/kotlin/utils/RandomPicResource.kt +++ b/telegram-bot/src/jvmTest/kotlin/utils/RandomPicResource.kt @@ -6,13 +6,6 @@ abstract class RandomPicSource { abstract fun getPicUrl(): String } -class UnsplashRandomPic : RandomPicSource() { - override fun getPicUrl(height: Int, width: Int): String = - "https://source.unsplash.com/random/${height}x$width?sig=incrementingIdentifier" - - override fun getPicUrl(): String = "https://source.unsplash.com/random/10x10?sig=incrementingIdentifier" -} - class LoremPicsumPic : RandomPicSource() { override fun getPicUrl(height: Int, width: Int): String = "https://picsum.photos/$height/$width" @@ -21,6 +14,6 @@ class LoremPicsumPic : RandomPicSource() { } object RandomPicResource : - ResourcePicker(listOf(UnsplashRandomPic(), LoremPicsumPic())) { + ResourcePicker(listOf(LoremPicsumPic())) { val RANDOM_PIC_URL get() = current.getPicUrl() }