Private
Public Access
0
0
Files
manual_slop/tests
ed bf3a0b9f73 refactor(gui_2): obliterate 2 legacy wrappers _detect_refresh_rate_win32 + _resolve_font_path (Phase 6)
Phase 6 (2 of 9 cruft sites obliterated):

OBLITERATED wrappers:
1. _detect_refresh_rate_win32() -> float (1 caller in App.__init__)
   Migrated: caller now uses _detect_refresh_rate_win32_result(...).data
   with explicit .ok check; on failure uses 0.0 default (no fps cap).
2. _resolve_font_path(font_path, assets_dir) -> str (1 caller in App._load_fonts)
   Migrated: caller now uses _resolve_font_path_result(...).data with .ok
   check; on failure falls back to 'fonts/Inter-Regular.ttf' (the bundled Inter).

Test result: 127/127 pass.
Audit gate: src/gui_2.py --strict exits 0 (no new violations).
Wrapper count: 2 -> 0.

PITFALL encountered: edit_file ate a def line in _apply_runtime_caps_override.
The function body got attached below the OBLITERATED stub. Fixed by
restoring the def line.

This completes Phases 3-6 (all file-level wrapper removals).
Phase 7 (remaining files) is N/A — audit found 0 wrappers in any src/ file.

Next: Phase 8 (audit gate + end-of-track report + campaign close-out).
2026-06-20 20:17:52 -04:00
..