mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-07 10:29:52 +00: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:
@@ -1060,11 +1060,6 @@ class KernelDoc:
|
|||||||
purpose=self.entry.declaration_purpose)
|
purpose=self.entry.declaration_purpose)
|
||||||
return
|
return
|
||||||
|
|
||||||
# Handle nested parentheses or brackets
|
|
||||||
r = KernRe(r'(\(*.\)\s*|\[*.\]\s*);$')
|
|
||||||
while r.search(proto):
|
|
||||||
proto = r.sub('', proto)
|
|
||||||
|
|
||||||
# Parse simple typedefs
|
# Parse simple typedefs
|
||||||
r = KernRe(r'typedef.*\s+(\w+)\s*;')
|
r = KernRe(r'typedef.*\s+(\w+)\s*;')
|
||||||
if r.match(proto):
|
if r.match(proto):
|
||||||
|
|||||||
Reference in New Issue
Block a user