docs: remove support for old sphinx-versions

We're not using them, so no point in keeping support around.

Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8399>
This commit is contained in:
Erik Faye-Lund
2023-04-25 08:46:07 +02:00
committed by Marge Bot
parent e64dae9441
commit 3b6f549e96

View File

@@ -30,8 +30,6 @@
# Based on https://github.com/pydata/pydata-sphinx-theme
from packaging.version import Version
from docutils import nodes
import sphinx
@@ -77,10 +75,7 @@ class BootstrapHTML5TranslatorMixin:
# init the attributes
atts = {}
if Version(sphinx.__version__) < Version("4.3"):
self._table_row_index = 0
else:
self._table_row_indices.append(0)
self._table_row_indices.append(0)
# get the classes
classes = [cls.strip(" \t\n") for cls in self.settings.table_style.split(",")]