Skip to content

refactor: Remove legacy componentIndex from World#1136

Merged
braedonsaunders merged 1 commit into
mainfrom
claude/remove-legacy-componentindex-39gaB
Jan 30, 2026
Merged

refactor: Remove legacy componentIndex from World#1136
braedonsaunders merged 1 commit into
mainfrom
claude/remove-legacy-componentindex-39gaB

Conversation

@braedonsaunders

Copy link
Copy Markdown
Owner

The componentIndex Map was maintained for "backwards compatibility" but was never actually read - only written to. The archetype-based query system (getEntitiesWith) has completely replaced it.

Removed:

  • componentIndex field declaration
  • Update logic in onComponentAdded/onComponentRemoved
  • Cleanup in destroyEntity and clear methods

This reduces maintenance cost and removes ~15 lines of dead code.

https://claude.ai/code/session_01P1dXLG7i6FWrbbD2zoJYgn

The componentIndex Map was maintained for "backwards compatibility" but
was never actually read - only written to. The archetype-based query
system (getEntitiesWith) has completely replaced it.

Removed:
- componentIndex field declaration
- Update logic in onComponentAdded/onComponentRemoved
- Cleanup in destroyEntity and clear methods

This reduces maintenance cost and removes ~15 lines of dead code.

https://claude.ai/code/session_01P1dXLG7i6FWrbbD2zoJYgn
@braedonsaunders braedonsaunders merged commit c495989 into main Jan 30, 2026
4 checks passed
@braedonsaunders braedonsaunders deleted the claude/remove-legacy-componentindex-39gaB branch January 30, 2026 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants