Skip to content

refactor: make origin private, remove unused template_dir from FullGenerationPlan#100

Merged
raiderrobert merged 1 commit into
mainfrom
fix/diecut-vzq
Feb 20, 2026
Merged

refactor: make origin private, remove unused template_dir from FullGenerationPlan#100
raiderrobert merged 1 commit into
mainfrom
fix/diecut-vzq

Conversation

@raiderrobert

@raiderrobert raiderrobert commented Feb 20, 2026

Copy link
Copy Markdown
Owner

FullGenerationPlan had all fields public, but source_info (now origin after #99) and template_dir are only ever used inside execute_generation. No external caller has any reason to read or modify them.

origin is made private. template_dir turned out to never be read during execution at all — the template directory is resolved before the plan is built and isn't needed again — so it's removed from the struct entirely rather than just made private.

…lGenerationPlan

origin is internal bookkeeping consumed only by execute_generation;
no legitimate reason for external inspection or mutation.

template_dir was stored in the plan but never read during execution
(resolve_template happens before the plan is constructed), so drop
it entirely rather than just making it private.
@raiderrobert raiderrobert merged commit f54a26f into main Feb 20, 2026
5 checks passed
@raiderrobert raiderrobert deleted the fix/diecut-vzq branch February 20, 2026 15:13
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