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:
jack
2025-08-12 09:41:12 +02:00
parent 7a7c89e689
commit 99c0f6523e
6 changed files with 43 additions and 258 deletions
+3 -4
View File
@@ -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: