Skip to content

refactor: remove unused geometry/ stub module - #116

Merged
CameronBrooks11 merged 1 commit into
mainfrom
refactor/remove-unused-geometry
Jun 24, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
refactor/remove-unused-geometry

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

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.141592653589793 literal, and an intersect_curve_with_plane() that only raise 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

  • Delete fiberpath/geometry/{__init__,curves,intersections,surfaces}.py and tests/geometry/test_surfaces.py.
  • scripts/freeze_cli.py: drop the four fiberpath.geometry* PyInstaller hidden-imports (would otherwise break the frozen build).
  • README architecture diagram + docs/architecture/overview.md: remove the geometry references (line + Key Modules row).

Verification

  • Full-repo grep: zero remaining fiberpath.geometry references.
  • ruff, mypy (strict, 23 files), full pytest (119 passed), mkdocs build --strict: all green.

Closes #109

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
@CameronBrooks11 CameronBrooks11 added the python Pull requests that update Python code label Jun 24, 2026
@CameronBrooks11
CameronBrooks11 merged commit 9ec933b into main Jun 24, 2026
24 checks passed
@CameronBrooks11
CameronBrooks11 deleted the refactor/remove-unused-geometry branch June 24, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean up geometry/ stub module (hardcoded pi, NotImplementedError)

1 participant