chore: Remove duplicate LootInventoryDisplay component #32
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?
Severity: Major
Files:
src/components/game/LootInventory/LootInventoryDisplay.tsx(310 lines)src/components/game/LootInventory/index.tsx(318 lines)Problem: Both files export a
LootInventoryDisplaycomponent with nearly identical functionality but slightly different implementations. Theindex.tsxversion has type annotations on callbacks whileLootInventoryDisplay.tsxdoesn't. Having both creates maintenance burden and confusion about which is canonical.Impact: Duplicate code, maintenance burden, potential for inconsistent behavior.
Fix: Consolidate into a single file. Delete
LootInventoryDisplay.tsxand keepindex.tsxas the canonical version (or vice versa). Update all imports accordingly.Fixed: Deleted duplicate LootInventoryDisplay.tsx (kept index.tsx as canonical). Both were orphaned anyway.