Skip to content

chore: remove dead code — unused/unimportable files and directories - #1055

Open
ilayfalach wants to merge 1 commit into
masterfrom
deadcode/remove-dead-files
Open

chore: remove dead code — unused/unimportable files and directories#1055
ilayfalach wants to merge 1 commit into
masterfrom
deadcode/remove-dead-files

Conversation

@ilayfalach

Copy link
Copy Markdown
Collaborator

Summary

Deletes 7 files/directories confirmed to have zero references anywhere in the repo, or that contain hard syntax errors and cannot be imported at all (netcdf2of.py, xarrayDataset2OF.py). Includes a duplicate-of-a-live-module directory (simulations/utils/interpolation/), a stale diverged fork (LSM/hermesWorkflowToolkit.py), and an import-time side-effect file that writes to disk on import (GIS/raster/hill2stl.py).

9 files changed, 2,769 deletions. Full detail in the "2. remove-dead-files" section of #1022.

Verification: python3 -m py_compile on all touched/neighboring files; confirmed no remaining imports of deleted module paths anywhere in the repo.

⚠️ Not merged/approved by me — opened for review only.

Refs #1022

Deletes seven dead files/directories confirmed via repo-wide grep to have
zero references outside their own definitions, and/or hard syntax errors
making them unimportable:

- hera/simulations/utils/interpolation/ — broken duplicate (TabError) of
  the live hera/simulations/utils/interpolations.py
- hera/simulations/LSM/hermesWorkflowToolkit.py — stale diverged fork of
  hera/simulations/hermesWorkflowToolkit.py
- hera/simulations/openFoam/postProcess/VTKPipelineExecutionContext.py —
  unreferenced class + dangling functions
- hera/simulations/openFoam/preprocessOFObjects/OFList.py — imported but
  never instantiated; internally broken. Also removes the now-dangling
  `from .OFList import OFList` line from preprocessOFObjects/__init__.py
- hera/simulations/openFoam/toberewritten/netcdf2of.py — hard SyntaxError
- hera/simulations/openFoam/toberewritten/xarrayDataset2OF.py — hard
  TabError/IndentationError
- hera/measurements/GIS/raster/hill2stl.py — import-time side effect
  (writes test1.stl to disk), zero references

Verified via python3 -m py_compile / ast.parse that neighboring __init__.py
files and modules still import cleanly after these removals.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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