Skip to content

refactor!: remove dead rtree spatial index from areafilter - #41

Merged
amorfinv merged 1 commit into
mainfrom
fix/remove-dead-rtree-areafilter
Aug 2, 2026
Merged

refactor!: remove dead rtree spatial index from areafilter#41
amorfinv merged 1 commit into
mainfrom
fix/remove-dead-rtree-areafilter

Conversation

@amorfinv

@amorfinv amorfinv commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

As described in #31, get_intersecting and get_knearest were viewport-culling helpers for the removed radar GUI with no callers anywhere in the codebase, so this removes them along with the rtree index, the fallback shim, and all the registration bookkeeping that existed only to feed them — AreaFilter now tracks shapes solely in basic_shapes, which every live code path already used. The rtree dependency is dropped from pyproject.toml and the lock refreshed, and new tests cover the tracking lifecycle (delete, redefine-replaces, LIST) that the removed registration path previously left untested.

Closes #31

get_intersecting and get_knearest had no callers anywhere in the
codebase, tests, or docs — they were viewport-culling helpers for the
upstream BlueSky radar GUI, which MiniSky has removed. Drop them along
with everything that existed only to feed them: the rtree Index and its
libspatialindex-missing fallback shim, area_id/max_area_id, the
areas_by_id/areas_by_name weak dicts, Shape.bbox, Shape.__del__, and
_register/_unregister. AreaFilter now tracks shapes solely in the
basic_shapes dict, which was already the registry every live code path
used.

Also drop the rtree dependency from pyproject.toml, refresh the lock,
and add tracking-lifecycle tests (delete, redefine-replaces, LIST)
that the removed registration path previously left uncovered.

Closes #31
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
minisky ade9322 Aug 02 2026, 09:07 PM

@amorfinv
amorfinv merged commit 1b742c0 into main Aug 2, 2026
2 checks passed
@amorfinv
amorfinv deleted the fix/remove-dead-rtree-areafilter branch August 2, 2026 21:08
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.

Remove dead rtree spatial index from areafilter (get_intersecting/get_knearest have no callers)

1 participant