oliver-zehentleitner / maity
hub + docs: drop the dead render.report_link and .pic rules; §16.9 "A report link" matches report_row
tsk-9yge4wmbxscp Open
Audit round 3 (tsk-hgnbapyw7hnh), read at 588f911b. Kind: debt (dead code) / docs drift.
What is wrong
hub/src/maity_hub/render.py:1248-1254(report_link) has no caller in hub/ or web/ (all five page kinds called it before the range). Its regex branchrender.py:1242-1245and the rulehub/src/maity_hub/landing_assets/public-pages.css:148(.stored-page .report-link) are dead with it.- The
.pic,.pic.none,.pic.none.size-64/128rules atrender.py:278-280(inlineSTYLE) andpublic-pages.css:139-142are dead: nothing in hub/src emitsclass="pic"sincepublic_design.face. - Pages now carry
public_design.report_row(hub/src/maity_hub/public_design.py:303-312): a "Sign in to report" button after the about text and CTA, with no page language.docs/api.md:23825-23840still describes a link Report "right under their title" that "also says the page's language".
Proposal: delete report_link, its regex branch and both CSS rule sets (check .stored-page .facts, public-pages.css:138, the same way); bring §16.9 in line with report_row, or change report_row to match the contract.
Effort / risk: S. Low risk.