Skip to content

Remove dead code from visual metrics#2534

Merged
soulgalore merged 1 commit into
mainfrom
visualmetrics-cleanup
Jul 20, 2026
Merged

Remove dead code from visual metrics#2534
soulgalore merged 1 commit into
mainfrom
visualmetrics-cleanup

Conversation

@soulgalore

Copy link
Copy Markdown
Member

The repo carried two visual metrics scripts, but only the portable one is invoked or shipped in the npm package — the old ImageMagick-based visualmetrics.py has been unreachable for years and its 2 600 lines kept showing up in searches and audits as if they were live code. The portable script itself had accumulated leftovers from that conversion: an advertised --render option that was never implemented, three functions nothing calls, unused locals and an ImageMagick-output regex in code that no longer shells out. Also fixes the regex escape that made Python 3.12+ print a SyntaxWarning on every single run.

No behaviour change: the unit test suite and a full end-to-end run on a recorded video produce identical output before and after.

Co-authored-by: Claude Fable 5 noreply@anthropic.com
Change-Id: I3688b38c986644f4dacc7def8bc61b50e4cf84bb

The repo carried two visual metrics scripts, but only the portable
one is invoked or shipped in the npm package — the old
ImageMagick-based visualmetrics.py has been unreachable for years and
its 2 600 lines kept showing up in searches and audits as if they
were live code. The portable script itself had accumulated leftovers
from that conversion: an advertised --render option that was never
implemented, three functions nothing calls, unused locals and an
ImageMagick-output regex in code that no longer shells out. Also
fixes the regex escape that made Python 3.12+ print a SyntaxWarning
on every single run.

No behaviour change: the unit test suite and a full end-to-end run on
a recorded video produce identical output before and after.

Co-authored-by: Claude Fable 5 noreply@anthropic.com
Change-Id: I3688b38c986644f4dacc7def8bc61b50e4cf84bb
@soulgalore
soulgalore merged commit 747a006 into main Jul 20, 2026
17 checks passed
@soulgalore
soulgalore deleted the visualmetrics-cleanup branch July 20, 2026 06:21
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