src/svg_parser/fill_resolver.py is dead code — duplicate resolver never wired into the pipeline #121
Labels
No labels
blocked:children
blocked:depends-101
blocked:depends-103
blocked:depends-104
blocked:needs-attention
blocked:needs-decision
blocked:no-changes
blocked:preflight
bug
chore
feature-request
in-progress
lint-cleanup
needs-decompose
performance
quality
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/easystitch#121
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What is wrong
src/svg_parser/fill_resolver.py(598 lines) is a second gradient/pattern resolver that is never imported by anysrc/module. The live pipeline wiressrc/svg_parser/gradient_pattern_resolver.py(GradientPatternResolver) intoparser.parse_svg(parser.py:71-72).fill_resolverwas restored from a stash ind42e46e("fix: restore fill_resolver module to fix pytest collection (#115)") but only the tests import it (DEFAULT_LINEAR_BANDS,resolve_paint_references,resolve_svg_string).Where
src/svg_parser/fill_resolver.py— dead modulesrc/svg_parser/gradient_pattern_resolver.py— the live resolvertests/test_gradient_pattern_fill.py— imports both, asserting the live parser contract but also exercising the dead module directlyWhat the fix is
Decide which resolver is canonical.
gradient_pattern_resolveris wired and covered;fill_resolverduplicatesUnsupportedSVGFeatureError(vs the pipeline-wideUnsupportedFillError),DEFAULT_LINEAR_BANDS, andresolve_svg_string. Either deletefill_resolverand update the 2-3 tests that call it directly, or migrate the pipeline to it and deletegradient_pattern_resolver. Keep one exception type — having bothUnsupportedFillError(pipeline_api) andUnsupportedSVGFeatureError(fill_resolver) for the same condition is a maintenance hazard.Verification
After removal,
python -m pytest -qstays green (currently 336 passing).