Skip to content

Remove 72 unused entities from language-snippets.ent#5625

Open
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:cleanup/unused-language-snippets-entities
Open

Remove 72 unused entities from language-snippets.ent#5625
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:cleanup/unused-language-snippets-entities

Conversation

@lacatoire

@lacatoire lacatoire commented Jun 18, 2026

Copy link
Copy Markdown
Member

Auditing language-snippets.ent surfaced unused entity declarations that are not referenced anywhere, directly or transitively: deprecation banners for old PHP cycles, snippets for removed extensions (mcrypt, sqlite, t1lib, safemode, ...) and stale helpers.

This removes the 72 that no translation references either. The 11 entities still referenced by some translations are split into a separate PR.

Pure cleanup, no rendered output changes.

@lacatoire lacatoire force-pushed the cleanup/unused-language-snippets-entities branch from 9cf3e64 to 1b5d586 Compare June 18, 2026 15:24
@alfsb

alfsb commented Jun 18, 2026

Copy link
Copy Markdown
Member

Also checked non usage on translations?

But even if some outdated translations still use some of then, keep the deletion. Anything that shrinks language-snippets.ent is a big yes for me.

And after php/doc-base#301 is merged, any deleted entity on doc-en still used for translations can now be moved to a temporary file, so full remotions on doc-en can be done in one step, without breaking translations.

@lacatoire lacatoire force-pushed the cleanup/unused-language-snippets-entities branch from 1b5d586 to 11e7920 Compare June 19, 2026 07:12
@lacatoire lacatoire changed the title Remove 83 unused entities from language-snippets.ent Remove 72 unused entities from language-snippets.ent Jun 19, 2026
@lacatoire lacatoire force-pushed the cleanup/unused-language-snippets-entities branch from 11e7920 to 4395196 Compare June 19, 2026 07:42
@lacatoire

Copy link
Copy Markdown
Member Author

@alfsb i've removed those used in translations in another PR #5628

@alfsb

alfsb commented Jun 19, 2026

Copy link
Copy Markdown
Member

That is impressive. You have a comprehensive view of dependencies between these DTD entities and languages. Hope that doc-base's 301 will help make this work easier. In fact, #5628 may be the first use/user of an doc-en/entities/entities-remove.ent file.

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.

3 participants