Skip to content

Commit 6227da8

Browse files
committed
chore: code cleanup, remove lightning shortcut related code
1 parent 5fe406d commit 6227da8

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

common/src/commonMain/kotlin/com/blockstream/common/data/GreenWallet.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,6 @@ data class GreenWallet constructor(
187187
else -> WalletIcon.REGULAR
188188
}
189189

190-
fun lightningShortcutWallet(): GreenWallet {
191-
return copy(wallet = wallet.copy(id = "${wallet.id}-lightning-shortcut", is_lightning = true), ephemeralIdOrNull = 0)
192-
}
193-
194190
companion object {
195191
fun createWallet(
196192
name: String,

common/src/commonMain/kotlin/com/blockstream/common/extensions/PreviewExtensions.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ fun previewWalletListView(
8181
?: wallet.ephemeralBip39Name else "",
8282
isWatchOnly = false,
8383
isConnected = isConnected,
84-
isLightningShortcutConnected = false,
8584
icon = wallet.icon
8685
)
8786
}

common/src/commonMain/kotlin/com/blockstream/common/looks/wallet/WalletListLook.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,13 @@ data class WalletListLook constructor(
1616
val subtitle: String,
1717
val isWatchOnly: Boolean,
1818
val isConnected: Boolean,
19-
val isLightningShortcutConnected: Boolean,
2019
val icon: WalletIcon,
2120
) {
2221

2322
companion object {
2423

2524
suspend fun create(wallet: GreenWallet, sessionManager: SessionManager): WalletListLook {
2625
val session = sessionManager.getWalletSessionOrCreate(wallet)
27-
val lightningShortcutSession =
28-
sessionManager.getWalletSessionOrNull(wallet.lightningShortcutWallet())
2926

3027
return WalletListLook(
3128
greenWallet = wallet,
@@ -38,7 +35,6 @@ data class WalletListLook constructor(
3835
},
3936
isWatchOnly = wallet.isWatchOnly,
4037
isConnected = session.isConnected,
41-
isLightningShortcutConnected = lightningShortcutSession?.isConnected == true,
4238
icon = wallet.icon
4339
)
4440
}

0 commit comments

Comments
 (0)