From 4512b024f88d2c72e74970ed5f4aaef736ed3bbd Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 28 Jul 2020 20:08:51 +0200 Subject: [PATCH] Removed findBankWebsite() from IBankIconFinder --- .../kotlin/net/dankito/banking/util/IBankIconFinder.kt | 2 -- .../kotlin/net/dankito/banking/util/NoOpBankIconFinder.kt | 4 ---- .../jvmMain/kotlin/net/dankito/banking/util/BankIconFinder.kt | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/util/IBankIconFinder.kt b/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/util/IBankIconFinder.kt index 4cae55f8..fa26b7b1 100644 --- a/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/util/IBankIconFinder.kt +++ b/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/util/IBankIconFinder.kt @@ -5,6 +5,4 @@ interface IBankIconFinder { fun findIconForBank(bankName: String, prefSize: Int = 72): String? - fun findBankWebsite(bankName: String): String? - } \ No newline at end of file diff --git a/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/util/NoOpBankIconFinder.kt b/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/util/NoOpBankIconFinder.kt index c4769231..21c2a5f1 100644 --- a/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/util/NoOpBankIconFinder.kt +++ b/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/util/NoOpBankIconFinder.kt @@ -7,8 +7,4 @@ open class NoOpBankIconFinder : IBankIconFinder { return null } - override fun findBankWebsite(bankName: String): String? { - return null - } - } \ No newline at end of file diff --git a/ui/BankingUiCommon/src/jvmMain/kotlin/net/dankito/banking/util/BankIconFinder.kt b/ui/BankingUiCommon/src/jvmMain/kotlin/net/dankito/banking/util/BankIconFinder.kt index 1e07b0e8..82e530fc 100644 --- a/ui/BankingUiCommon/src/jvmMain/kotlin/net/dankito/banking/util/BankIconFinder.kt +++ b/ui/BankingUiCommon/src/jvmMain/kotlin/net/dankito/banking/util/BankIconFinder.kt @@ -53,7 +53,7 @@ open class BankIconFinder : IBankIconFinder { } - override fun findBankWebsite(bankName: String): String? { + open fun findBankWebsite(bankName: String): String? { try { val adjustedBankName = bankName.replace("-alt-", "").replace(ReplaceGfRegex, "")