Skip to content

cleanup: remove GX-ISSUE144 diagnostic logging#160

Merged
fbraz3 merged 1 commit into
mainfrom
cleanup/remove-gx-issue144-logging
Jun 12, 2026
Merged

cleanup: remove GX-ISSUE144 diagnostic logging#160
fbraz3 merged 1 commit into
mainfrom
cleanup/remove-gx-issue144-logging

Conversation

@fbraz3

@fbraz3 fbraz3 commented Jun 12, 2026

Copy link
Copy Markdown
Owner

Description

Remove all [GX-ISSUE144] diagnostic stderr logging that was added during issue #144 investigation. The instrumentation served its purpose but pollutes the log in production builds.

Changes

  • 55 log statements removed across 8 files (320 lines deleted)
  • Empty if/else blocks left by log removal were also cleaned up
  • Unused log_buffer variables and single-use debug flags (_fetchLogged, _constructDrawLogged) removed
  • No functional logic changed — only diagnostic output removed

Files

File Functions cleaned
W3DGameFont.cpp LoadUnicodeFallbackFont, loadFontData
InGameUI.cpp init
GameWindowManager.cpp winCreate, assignDefaultGadgetLook
ControlBarPopupDescription.cpp showBuildTooltipLayout, repopulateBuildTooltipLayout, populateBuildTooltipLayout
ControlBarUnderConstruction.cpp updateConstructionTextDisplay
Drawable.cpp ResolveDrawableCaptionFont, ctor, drawConstructPercent, setCaptionText
render2dsentence.cpp Get_Char_Data, Init_FreeType, Store_Freetype_Char
GlobalLanguage.cpp init

Verification

  • grep GX-ISSUE144 returns 0 hits in source code (1 in DEV_BLOG docs only)
  • Build GeneralsXZH (macos-vulkan) — 1460/1460 OK
  • Build GeneralsX (macos-vulkan) — 785/785 OK

Remove all [GX-ISSUE144] tagged stderr instrumentation added during
issue #144 investigation. 55 log statements removed across 8 files.

Where removing a log left an empty if/else block, the entire block was
removed. Unused log_buffer variables and single-use debug flags
(_fetchLogged, _constructDrawLogged) were also cleaned up.

Files changed:
- W3DGameFont.cpp (LoadUnicodeFallbackFont, loadFontData)
- InGameUI.cpp (init)
- GameWindowManager.cpp (winCreate, assignDefaultGadgetLook)
- ControlBarPopupDescription.cpp (show/repopulate/populateBuildTooltipLayout)
- ControlBarUnderConstruction.cpp (updateConstructionTextDisplay)
- Drawable.cpp (ResolveDrawableCaptionFont, ctor, drawConstructPercent, setCaptionText)
- render2dsentence.cpp (Get_Char_Data, Init_FreeType, Store_Freetype_Char)
- GlobalLanguage.cpp (init)

Builds verified: GeneralsXZH + GeneralsX (macos-vulkan)
@fbraz3 fbraz3 merged commit efbe515 into main Jun 12, 2026
8 checks passed
@fbraz3 fbraz3 deleted the cleanup/remove-gx-issue144-logging branch June 12, 2026 19:39
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