Skip to content

refactor: remove deprecated parameters and legacy single-peer code#1325

Merged
braedonsaunders merged 1 commit into
mainfrom
claude/review-dead-code-b0kVW
Feb 3, 2026
Merged

refactor: remove deprecated parameters and legacy single-peer code#1325
braedonsaunders merged 1 commit into
mainfrom
claude/review-dead-code-b0kVW

Conversation

@braedonsaunders

Copy link
Copy Markdown
Owner
  • Remove deprecated fogOfWarRef from usePostProcessing hook and call sites
  • Remove deprecated wallPlacementPreviewRef from useGameInput hook and call sites
  • Remove legacy single-peer validation fallback in Game.ts (multi-peer system is now fully set up)
  • Remove redundant setDataChannel calls from useLobbySync.ts (addPeer handles this)
  • Fix README.md documentation drift: update file paths for networking implementation

The multi-peer system via addPeer()/peerChannels is now the sole implementation path. Legacy fields (remotePeerId, dataChannel) are still present in multiplayerStore but no longer needed for command validation - they can be removed in a follow-up PR.

https://claude.ai/code/session_01MopZftCMNSsXVjQF2igzRv

- Remove deprecated fogOfWarRef from usePostProcessing hook and call sites
- Remove deprecated wallPlacementPreviewRef from useGameInput hook and call sites
- Remove legacy single-peer validation fallback in Game.ts (multi-peer system is now fully set up)
- Remove redundant setDataChannel calls from useLobbySync.ts (addPeer handles this)
- Fix README.md documentation drift: update file paths for networking implementation

The multi-peer system via addPeer()/peerChannels is now the sole implementation path.
Legacy fields (remotePeerId, dataChannel) are still present in multiplayerStore but
no longer needed for command validation - they can be removed in a follow-up PR.

https://claude.ai/code/session_01MopZftCMNSsXVjQF2igzRv
@braedonsaunders braedonsaunders merged commit 17f6fcc into main Feb 3, 2026
4 checks passed
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