Skip to content

Remove unused XPath functions min, max, ReplaceAll, FontSizeGuess - #906

Merged
NSoiffer merged 4 commits into
daisy:mainfrom
moritz-gross:remove-unused-xpath-functions
Nov 1, 2026
Merged

NSoiffer merged 4 commits into
daisy:mainfrom
moritz-gross:remove-unused-xpath-functions

Conversation

@moritz-gross

Copy link
Copy Markdown
Collaborator

None of these were called from any rule file or from Rust code via XPath. They were registered under a "Not used: remove??" comment.

  • Delete Min, Max and ReplaceAll and their registrations
  • Drop the XPath registration for FontSizeGuess; its only remaining use was em_from_value() from canonicalize.rs, which is now a free pub(crate) function

None of these were called from any rule file or from Rust code via XPath.
They were registered under a "Not used: remove??" comment.
  - Delete Min, Max and ReplaceAll and their registrations
  - Drop the XPath registration for FontSizeGuess; its only remaining use was em_from_value() from canonicalize.rs, which is now a free pub(crate) function
@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Linux library size: 0.59 MiB (-0.14%)
Revision Release liblibmathcat.so
Base (a9d481a) 0.59 MiB (618,272 bytes)
PR (42aebff) 0.59 MiB (617,424 bytes)
Change -848 bytes (-0.14%)

Built with default features, Rust 1.96.0, and Ubuntu 24.04. Workflow run.

@moritz-gross

Copy link
Copy Markdown
Collaborator Author

update: unblocked this from the changes by llazy_regex

@moritz-gross
moritz-gross marked this pull request as draft October 28, 2026 23:44
@NSoiffer
NSoiffer marked this pull request as ready for review November 1, 2026 19:06
@NSoiffer

NSoiffer commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator

I guess at this point if the functions aren't being used, they probably aren't going to be used. So I'll reluctantly approve this cleanup.

@NSoiffer NSoiffer closed this Nov 1, 2026
@github-project-automation github-project-automation Bot moved this from Triage to Done in MathCAT Project Board Nov 1, 2026
@NSoiffer NSoiffer reopened this Nov 1, 2026
@github-project-automation github-project-automation Bot moved this from Done to Ready in MathCAT Project Board Nov 1, 2026
@NSoiffer
NSoiffer merged commit 62a1e49 into daisy:main Nov 1, 2026
25 checks passed
@github-project-automation github-project-automation Bot moved this from Ready to Done in MathCAT Project Board Nov 1, 2026
@moritz-gross

Copy link
Copy Markdown
Collaborator Author

I guess at this point if the functions aren't being used, they probably aren't going to be used. So I'll reluctantly approve this cleanup.

whatever you think makes most sense. we can also reluctantly mark this part with a comment and see what has changed in a few months.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants