summary refs log tree commit diff stats
path: root/docs/sphinx/kernellog.py
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2024-07-03 13:52:35 -0400
committerJohn Snow <jsnow@redhat.com>2024-07-12 16:46:21 -0400
commitdd23f9ec519db9c424223cff8767715de5532718 (patch)
treef085e0a4c4085f5cc047aaafd6bb65ae591e06fc /docs/sphinx/kernellog.py
parentfe791b7fcc760cd332cfabe5a328bc63e0437aa4 (diff)
downloadfocaccia-qemu-dd23f9ec519db9c424223cff8767715de5532718.tar.gz
focaccia-qemu-dd23f9ec519db9c424223cff8767715de5532718.zip
docs: remove Sphinx 1.x compatibility code
In general, the Use_SSI workaround is no longer needed, and neither is
the pre-1.6 logging shim for kerneldoc.

Signed-off-by: John Snow <jsnow@redhat.com>
Acked-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-id: 20240703175235.239004-3-jsnow@redhat.com
[rebased on top of origin/master. --js]
Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'docs/sphinx/kernellog.py')
-rw-r--r--docs/sphinx/kernellog.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/docs/sphinx/kernellog.py b/docs/sphinx/kernellog.py
deleted file mode 100644
index af924f51a7..0000000000
--- a/docs/sphinx/kernellog.py
+++ /dev/null
@@ -1,28 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0
-#
-# Sphinx has deprecated its older logging interface, but the replacement
-# only goes back to 1.6.  So here's a wrapper layer to keep around for
-# as long as we support 1.4.
-#
-import sphinx
-
-if sphinx.__version__[:3] >= '1.6':
-    UseLogging = True
-    from sphinx.util import logging
-    logger = logging.getLogger('kerneldoc')
-else:
-    UseLogging = False
-
-def warn(app, message):
-    if UseLogging:
-        logger.warning(message)
-    else:
-        app.warn(message)
-
-def verbose(app, message):
-    if UseLogging:
-        logger.verbose(message)
-    else:
-        app.verbose(message)
-
-