Skip to content

Commit

Permalink
misc: remove unused extension and lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
reez authored Aug 27, 2024
1 parent ede7366 commit 4ae5fb1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
9 changes: 0 additions & 9 deletions LDKNodeMonday/Extensions/String+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,6 @@ extension String {
return words.map { $0.capitalized }.joined(separator: " ")
}

private var isLightningAddress: Bool {
let lowercasedSelf = self.lowercased()
let queryParams = self.queryParameters()
if let lightningParam = queryParams["lightning"], !lightningParam.isEmpty {
return true
}
return lowercasedSelf.starts(with: "ln") || lowercasedSelf.hasPrefix("lightning:")
}

private var isBitcoinAddress: Bool {
return lowercased().hasPrefix("bitcoin:") || isValidBitcoinAddress
}
Expand Down
2 changes: 1 addition & 1 deletion LDKNodeMonday/View Model/Home/Receive/BIP21ViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class BIP21ViewModel: ObservableObject {
)

DispatchQueue.main.async {
self.unified = unifiedLowercase
self.unified = unified
}
} catch let error as NodeError {
let errorString = handleNodeError(error)
Expand Down
1 change: 0 additions & 1 deletion LDKNodeMonday/View/Home/Receive/BIP21View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ struct BIP21View: View {
@State private var bolt12ShowCheckmark = false
@State private var unifiedIsCopied = false
@State private var unifiedShowCheckmark = false

@State private var showingReceiveViewErrorAlert = false
@State private var isKeyboardVisible = false

Expand Down

0 comments on commit 4ae5fb1

Please sign in to comment.