diff --git a/BankingUiCommon/src/main/java/net/dankito/banking/util/BankIconFinder.kt b/BankingUiCommon/src/main/java/net/dankito/banking/util/BankIconFinder.kt index 23b213c6..23506015 100644 --- a/BankingUiCommon/src/main/java/net/dankito/banking/util/BankIconFinder.kt +++ b/BankingUiCommon/src/main/java/net/dankito/banking/util/BankIconFinder.kt @@ -1,6 +1,5 @@ package net.dankito.banking.util -import net.dankito.fints.model.BankInfo import net.dankito.utils.favicon.FaviconComparator import net.dankito.utils.favicon.FaviconFinder import net.dankito.utils.web.client.OkHttpWebClient @@ -37,10 +36,6 @@ open class BankIconFinder : IBankIconFinder { protected val faviconComparator = FaviconComparator(webClient) - override fun findIconForBank(bankInfo: BankInfo): String? { - return findIconForBank(bankInfo.name) - } - override fun findIconForBank(bankName: String): String? { findBankWebsite(bankName)?.let { bankUrl -> webClient.get(bankUrl).body?.let { bankHomepageResponse -> diff --git a/BankingUiCommon/src/main/java/net/dankito/banking/util/IBankIconFinder.kt b/BankingUiCommon/src/main/java/net/dankito/banking/util/IBankIconFinder.kt index 662f689e..aaa98fe8 100644 --- a/BankingUiCommon/src/main/java/net/dankito/banking/util/IBankIconFinder.kt +++ b/BankingUiCommon/src/main/java/net/dankito/banking/util/IBankIconFinder.kt @@ -1,12 +1,8 @@ package net.dankito.banking.util -import net.dankito.fints.model.BankInfo - interface IBankIconFinder { - fun findIconForBank(bankInfo: BankInfo): String? - fun findIconForBank(bankName: String): String? fun findBankWebsite(bankName: String): String?