Skip to content

refactor: remove dead code, share resource-path logic, cache zone-graph lookups#74

Merged
ajbtech merged 6 commits into
mainfrom
claude/codebase-refactoring-plan-EWGr1
May 31, 2026
Merged

refactor: remove dead code, share resource-path logic, cache zone-graph lookups#74
ajbtech merged 6 commits into
mainfrom
claude/codebase-refactoring-plan-EWGr1

Conversation

@ajbtech

@ajbtech ajbtech commented May 31, 2026

Copy link
Copy Markdown
Owner
  • Delete unused money_sorter.get_coin_value and log_parser.open_file(s)_and_get_lines
  • Extract sys._MEIPASS bundle convention into resource_paths.bundled_root,
    used by eq_display, zone_graph, and ui.asset_paths
  • Cache zone_graph.get_adjacent_zone_pairs / get_zone_centers (called per-zone
    in hot loops) with lru_cache
  • Trim EQList to its production surface (raw + count-alpha ranking)
  • Unify the in-memory and streaming parse paths via a shared _ingest_lines, and
    build ParseSummary as a generic projection of ParserState fields so adding a
    tracked metric no longer means editing a hand-written copy

claude added 6 commits May 31, 2026 12:53
…ph lookups

- Delete unused money_sorter.get_coin_value and log_parser.open_file(s)_and_get_lines
- Extract sys._MEIPASS bundle convention into resource_paths.bundled_root,
  used by eq_display, zone_graph, and ui.asset_paths
- Cache zone_graph.get_adjacent_zone_pairs / get_zone_centers (called per-zone
  in hot loops) with lru_cache
- Trim EQList to its production surface (raw + count-alpha ranking)
- Unify the in-memory and streaming parse paths via a shared _ingest_lines, and
  build ParseSummary as a generic projection of ParserState fields so adding a
  tracked metric no longer means editing a hand-written copy
…-view cleanup

- Add SummarySections.character_name so ResultsView reads the name directly
  instead of stripping the 'Character: ' prefix back off the display string
- Extract a table-driven _RunningTotals accumulator from VideoGenerator.frames(),
  removing the per-event if/elif chain and the 7-arg _stats_lines signature
- Move the video-length dialog into ui/views/duration_dialog.py and collapse the
  five identical bronze-button setups in ResultsView into one helper
- Extract map_path._emits_event shared by build_map_events and
  cumulative_event_counts so the line/dot/skip rule has one definition
- Reuse summary_formatter.format_number in ProgressView instead of a local copy
- Hoist 'import math' to module scope in SegmentedProgressBar
@ajbtech ajbtech merged commit 82a6e6a into main May 31, 2026
15 checks passed
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