docs: kerneldoc-preamble.sty: Remove code for Sphinx <2.4
authorAkira Yokosawa <akiyks@gmail.com>
Fri, 1 Mar 2024 14:41:22 +0000 (23:41 +0900)
committerJonathan Corbet <corbet@lwn.net>
Sun, 3 Mar 2024 15:15:22 +0000 (08:15 -0700)
commit0df46e099156d894ee5b412a8bd986e13b2568c8
tree616870137bba9a4314f3b9a19accd984b7065edf
parentfe2562582bffe675721e77e00b3bf5bfa1d7aeab
docs: kerneldoc-preamble.sty: Remove code for Sphinx <2.4

Now that Sphinx 2.4.4 or better is required, get rid of
\providecommand{}'s for compatibility with Sphinx 1.7.9.

While at it, reword the comment on \sphinxtableofcontentshook
for better description of why it needs to be emptied.

Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <ed1ec6f2-0050-46f6-807d-8679f26427e9@gmail.com>
Documentation/sphinx/kerneldoc-preamble.sty