fix: remove dead code (toast stubs, unused Redis key, tunnel manager fields)

- Remove 7 no-op exported stubs from toast.tsx (ToastProvider, ToastViewport,
  Toast, ToastTitle, ToastDescription, ToastClose, useToasts) — nothing imports them
- Remove fwFailKey variable and its Set() call from worker.go — the
  firmware:check-failed Redis key was never read anywhere
- Remove unused deviceStore and credCache fields from tunnel.Manager struct
  and drop corresponding parameters from NewManager(); update call site in
  main.go and all test usages

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jason Staack
2026-03-15 23:12:56 -05:00
parent 83e59ed8d7
commit f49f5f739b
5 changed files with 16 additions and 38 deletions

View File

@@ -196,8 +196,6 @@ func main() {
cfg.TunnelPortMin,
cfg.TunnelPortMax,
time.Duration(cfg.TunnelIdleTimeout)*time.Second,
deviceStore,
credentialCache,
)
defer tunnelMgr.Shutdown()
slog.Info("tunnel manager initialized",