Skip to content

Commit 999a642

Browse files
author
Jonathan Corbet
committed
docs: kdoc: remove some dead code in dump_typedef()
The regex in this block of code makes no sense, and a quick test shows that it never matches anything; simply delete the code. No output changes. Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent 3dff544 commit 999a642

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

scripts/lib/kdoc/kdoc_parser.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,11 +1060,6 @@ def dump_typedef(self, ln, proto):
10601060
purpose=self.entry.declaration_purpose)
10611061
return
10621062

1063-
# Handle nested parentheses or brackets
1064-
r = KernRe(r'(\(*.\)\s*|\[*.\]\s*);$')
1065-
while r.search(proto):
1066-
proto = r.sub('', proto)
1067-
10681063
# Parse simple typedefs
10691064
r = KernRe(r'typedef.*\s+(\w+)\s*;')
10701065
if r.match(proto):

0 commit comments

Comments
 (0)