Skip to content

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

Merged
timfox merged 1 commit intomainfrom
cursor/feature-flag-cleanup-4356
May 4, 2026
Merged

chore(server): remove dead pending-command dedup block#167
timfox merged 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>
@timfox timfox marked this pull request as ready for review May 4, 2026 23:05
@timfox timfox merged commit e746fee into main May 4, 2026
45 of 53 checks passed
Copy link
Copy Markdown
Author

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Security review complete. I found no high-confidence medium-or-higher security vulnerabilities introduced or exposed by this PR.

Scope checked: the diff only removes an #if 0 helper and a commented-out call in SV_AddServerCommand; the active server-command queuing path and its existing overflow/length controls are unchanged. No prior automation review threads were present to revalidate.

Open in Web View Automation 

Sent by Cursor Automation: Find vulnerabilities

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