Removed unused findIconForBank(bankInfo: BankInfo)

This commit is contained in:
dankito 2020-04-27 00:32:20 +02:00
parent 3023b49ca3
commit 19fdd4cea8
2 changed files with 0 additions and 9 deletions

View File

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

View File

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