Remove dead code and extract helper methods

- Delete LocalizationCatalogTests.swift (530 lines entirely commented out)
- Remove unused nilIfEmpty String extension
- Remove backward-compat aliases from CommandProcessor
- Extract reachableTransport/connectedTransport helpers in MessageRouter
- Extract npubToHex/sendWrappedMessage helpers in NostrTransport
- Refactor 7 message sending methods to use shared helpers

Net reduction: ~590 lines

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
jack
2026-01-14 14:09:58 -10:00
co-authored by Claude Opus 4.5
parent 4fbbd24021
commit 81a6e18d04
7 changed files with 78 additions and 669 deletions
+1 -1
View File
@@ -448,7 +448,7 @@ final class ChatViewModel: ObservableObject, BitchatDelegate, CommandContextProv
self.deduplicationService = MessageDeduplicationService()
// Wire up dependencies
self.commandProcessor.chatViewModel = self
self.commandProcessor.contextProvider = self
self.participantTracker.configure(context: self)
// Subscribe to privateChatManager changes to trigger UI updates