Removed unused findIconForBank(bankInfo: BankInfo)
This commit is contained in:
parent
3023b49ca3
commit
19fdd4cea8
|
@ -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 ->
|
||||
|
|
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue