🟡 ConfirmDialog: dead code — fully implemented but never imported #61
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
File:
src/components/game/ConfirmDialog.tsx(184 lines)ConfirmDialogis a fully implemented confirmation dialog component withuseConfirmDialoghook andConfirmDialogVarianttype. It exportsConfirmDialog,useConfirmDialog, and has a default export. However, no file in the codebase imports it. TheEnchantmentPreparerthat needs confirmation dialogs uses raw shadcnAlertDialoginstead.Impact: Dead code. 184 lines of unused component.
Fix: Either integrate
ConfirmDialogwhere confirmation dialogs are needed (replacing rawAlertDialogusage), or remove it.[priority: 2] ORPHANED/DEAD CODE — ConfirmDialog fully implemented but never imported.
Fixed: Deleted orphaned ConfirmDialog.tsx (never imported — EnchantmentPreparer uses AlertDialog from shadcn instead).