Repository navigation
refactor: remove unused geometry/ stub module - #116
Merged
Merged
Conversation
The fiberpath/geometry/ package was dead code — imported nowhere outside itself. It held bare dataclasses, a hardcoded pi literal, and an intersect_curve_with_plane() that only raised NotImplementedError, advertising non-cylindrical capability that does not exist. Remove the module and its single test. Non-cylindrical (geodesic) surface support remains documented as roadmap in the README Scope note and the issue tracker; it will be built against real requirements when the work starts, rather than preserved as a guessed-at stub. Also drop the geometry hidden-imports from scripts/freeze_cli.py (would break the frozen build) and the geometry references in README/architecture docs. Closes #109
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Remove the unused
fiberpath/geometry/stub module (the code-side follow-up to #107).Why
The module was dead code — imported nowhere outside itself (verified by full-repo grep). It contained bare dataclasses, a hardcoded
3.141592653589793literal, and anintersect_curve_with_plane()that onlyraise NotImplementedError, advertising non-cylindrical capability that doesn't exist. It misled readers (the original review flagged it).Per the maintainer decision on #109: delete rather than keep a guessed-at placeholder. Non-cylindrical (geodesic) surface support stays documented as roadmap in the README Scope & roadmap note and the issue tracker, to be built against real requirements when the work begins.
How / scope
fiberpath/geometry/{__init__,curves,intersections,surfaces}.pyandtests/geometry/test_surfaces.py.scripts/freeze_cli.py: drop the fourfiberpath.geometry*PyInstaller hidden-imports (would otherwise break the frozen build).docs/architecture/overview.md: remove the geometry references (line + Key Modules row).Verification
fiberpath.geometryreferences.ruff,mypy(strict, 23 files), fullpytest(119 passed),mkdocs build --strict: all green.Closes #109