mirror of
https://github.com/torvalds/linux.git
synced 2025-10-30 16:18:41 +02:00
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>
This commit is contained in:
parent
3dff54410e
commit
999a642d7e
1 changed files with 0 additions and 5 deletions
|
|
@ -1060,11 +1060,6 @@ class KernelDoc:
|
|||
purpose=self.entry.declaration_purpose)
|
||||
return
|
||||
|
||||
# Handle nested parentheses or brackets
|
||||
r = KernRe(r'(\(*.\)\s*|\[*.\]\s*);$')
|
||||
while r.search(proto):
|
||||
proto = r.sub('', proto)
|
||||
|
||||
# Parse simple typedefs
|
||||
r = KernRe(r'typedef.*\s+(\w+)\s*;')
|
||||
if r.match(proto):
|
||||
|
|
|
|||
Loading…
Reference in a new issue