Skip to content

chore(server): remove dead pending-command dedup block#167

Draft
cursor[bot] wants to merge 1 commit intomainfrom
cursor/feature-flag-cleanup-4356
Draft

chore(server): remove dead pending-command dedup block#167
cursor[bot] wants to merge 1 commit intomainfrom
cursor/feature-flag-cleanup-4356

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor Bot commented May 2, 2026

Summary

Removes a permanently disabled (#if 0) helper and related commented-out call site in SV_AddServerCommand. No runtime behavior change.

Flags removed

None. This repository does not use a centralized feature-flag registry; engine toggles are mostly cvar_t and CMake/renderer defines. This change removes a dead compile-time branch only.

Why this is safe to delete

  • SV_ReplacePendingServerCommands was wrapped in #if 0 // unused and was never compiled.
  • The only use in SV_AddServerCommand was commented out; live code always took the path that skips deduplication and proceeds as today.

Behavioral parity checks performed

  • Full OpenGL Release build via ./scripts/compile_engine.sh opengl (succeeded).
  • ctest from build-gl-Release: 19/19 tests passed (smoke test, renderer regression check, unit tests, script tests).
Open in Web View Automation 

The helper lived under #if 0 and was never compiled; the only call site
in SV_AddServerCommand was commented out. Drop the dead code and stale
comments to reduce noise without changing server command behavior.

Co-authored-by: Tim Fox <timfox@outlook.com>
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.

1 participant