Remove an unused function in a test (#12839)

This commit is contained in:
Adam Dangoor 2024-08-31 07:47:16 +01:00 committed by GitHub
parent b5617c0d15
commit 7b6f76b61c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2184,10 +2184,6 @@ def test_duplicated_labels_before_module(app):
app.build()
content: str = (app.outdir / 'projectnamenotset.tex').read_text(encoding='utf8')
def count_label(name):
text = r'\phantomsection\label{\detokenize{%s}}' % name
return content.count(text)
pattern = (
r'\\phantomsection\\label\{\\detokenize\{index:label-(?:auto-)?\d+[a-z]*}}'
)