mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-26 11:25:19 +00:00
refactor: remove dead code and consolidate system messages
- Delete 3 unused functions in ShareViewController (36 lines) - Extract addSystemMessage() helper to eliminate duplication (120+ lines) - Remove 22 'let _ =' wasteful computations across multiple files - Net reduction of 215 lines of dead/duplicate code - Improves maintainability and reduces technical debt
This commit is contained in:
@@ -273,8 +273,7 @@ class NostrRelayManager: ObservableObject {
|
||||
}
|
||||
|
||||
case "EOSE":
|
||||
if array.count >= 2,
|
||||
let _ = array[1] as? String {
|
||||
if array.count >= 2 {
|
||||
// End of stored events
|
||||
}
|
||||
|
||||
@@ -290,8 +289,8 @@ class NostrRelayManager: ObservableObject {
|
||||
}
|
||||
|
||||
case "NOTICE":
|
||||
if array.count >= 2,
|
||||
let _ = array[1] as? String {
|
||||
if array.count >= 2 {
|
||||
// Server notice received
|
||||
}
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user