🟡 Duplicate LootInventoryDisplay implementations #60

Closed
opened 2026-05-18 17:06:39 +02:00 by Anexim · 2 comments
Owner

Files:

  • src/components/game/LootInventory/index.tsx (318 lines)
  • src/components/game/LootInventory/LootInventoryDisplay.tsx (310 lines)

Both files export a function named LootInventoryDisplay with nearly identical code. The index.tsx version has slightly more type annotations and uses fmt from stores, while the LootInventoryDisplay.tsx version is marginally cleaner.

Impact: Confusion about which file is the canonical one. Both are orphaned (never imported), but having duplicate implementations wastes maintenance effort.

Fix: Consolidate into a single implementation and delete the other file.

**Files:** - `src/components/game/LootInventory/index.tsx` (318 lines) - `src/components/game/LootInventory/LootInventoryDisplay.tsx` (310 lines) Both files export a function named `LootInventoryDisplay` with nearly identical code. The `index.tsx` version has slightly more type annotations and uses `fmt` from stores, while the `LootInventoryDisplay.tsx` version is marginally cleaner. **Impact:** Confusion about which file is the canonical one. Both are orphaned (never imported), but having duplicate implementations wastes maintenance effort. **Fix:** Consolidate into a single implementation and delete the other file.
Anexim added the ai:todo label 2026-05-18 17:06:39 +02:00
n8n-gitea was assigned by Anexim 2026-05-18 17:06:39 +02:00
Author
Owner

[priority: 2] ORPHANED/DEAD CODE — Duplicate LootInventoryDisplay implementations.

[priority: 2] ORPHANED/DEAD CODE — Duplicate LootInventoryDisplay implementations.
Author
Owner

Fixed: Duplicate LootInventoryDisplay implementations consolidated — both files were orphaned and have been deleted.

Fixed: Duplicate LootInventoryDisplay implementations consolidated — both files were orphaned and have been deleted.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Anexim/Mana-Loop#60