]> www.infradead.org Git - users/willy/xarray.git/commitdiff
docs: kdoc: remove a bit of dead code
authorJonathan Corbet <corbet@lwn.net>
Wed, 25 Jun 2025 21:43:37 +0000 (15:43 -0600)
committerJonathan Corbet <corbet@lwn.net>
Wed, 25 Jun 2025 22:50:06 +0000 (16:50 -0600)
The type_param regex matches "@..." just fine, so the special-case branch
for that in dump_section() is never executed.  Just remove it.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/lib/kdoc/kdoc_parser.py

index f87355b63c19758b6b0a4ab80e42fe89c4b546c1..9e46cfa209789ad7d3177c6c359c7d3369096ece 100644 (file)
@@ -207,13 +207,6 @@ class KernelEntry:
             self.sectcheck += name + " "
             self.new_start_line = 0
 
-        elif name == "@...":
-            name = "..."
-            self.parameterdescs[name] = contents
-            self.sectcheck += name + " "
-            self.parameterdesc_start_lines[name] = self.new_start_line
-            self.new_start_line = 0
-
         else:
             if name in self.sections and self.sections[name] != "":
                 # Only warn on user-specified duplicate section names