gh-104146: Remove unused var 'parser_body_declarations' from clinic.py (#104214)

This commit is contained in:
Erlend E. Aasland 2023-05-05 23:35:24 +02:00 committed by GitHub
parent a9c6e0618f
commit 66558d2a16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -814,13 +814,11 @@ class CLanguage(Language):
# parser_body_fields remembers the fields passed in to the
# previous call to parser_body. this is used for an awful hack.
parser_body_fields = ()
parser_body_declarations = ''
def parser_body(prototype, *fields, declarations=''):
nonlocal parser_body_fields, parser_body_declarations
nonlocal parser_body_fields
add, output = text_accumulator()
add(prototype)
parser_body_fields = fields
parser_body_declarations = declarations
fields = list(fields)
fields.insert(0, normalize_snippet("""