chore: remove dead SpaceZone methods (CreateTestSpacecraft, GetDockedChainExcluding) (S1144) #679

Closed
opened 2026-07-17 19:36:22 +00:00 by spikerj · 1 comment
Owner

Found via S1144 (unused private member) triage — continuation of #675.

Two more orphaned SpaceZone methods with no live callers:

  • CreateTestSpacecraft() (~137 lines): only call was commented out when spacecraft moved to inventory-based deployment. Helpers (PreCreateSpacecraftControllers/InitializeSpacecraftThrusters) still used by the live spawn path → no cascade. The identically-named PathManagerTests helper is a separate method, untouched.
  • GetDockedChainExcluding() (9 lines): self-labelled 'Legacy method for backward compatibility', superseded by GetDockedChainExcludingInPlace (live); no callers.

146 dead lines removed; GameServer + GameServer.Tests build clean; no behavior change. SonarQube rule csharpsquid:S1144.

Found via S1144 (unused private member) triage — continuation of #675. Two more orphaned SpaceZone methods with no live callers: - `CreateTestSpacecraft()` (~137 lines): only call was commented out when spacecraft moved to inventory-based deployment. Helpers (PreCreateSpacecraftControllers/InitializeSpacecraftThrusters) still used by the live spawn path → no cascade. The identically-named PathManagerTests helper is a separate method, untouched. - `GetDockedChainExcluding()` (9 lines): self-labelled 'Legacy method for backward compatibility', superseded by GetDockedChainExcludingInPlace (live); no callers. 146 dead lines removed; GameServer + GameServer.Tests build clean; no behavior change. SonarQube rule csharpsquid:S1144.
Author
Owner

Resolved in spikersoft-backend PR #377 (merged to master). Removed dead SpaceZone CreateTestSpacecraft + GetDockedChainExcluding methods (~146 lines); no behavior change. Closing.

Resolved in spikersoft-backend PR #377 (merged to master). Removed dead SpaceZone CreateTestSpacecraft + GetDockedChainExcluding methods (~146 lines); no behavior change. Closing.
Sign in to join this conversation.