summaryrefslogtreecommitdiff
path: root/sphinx/directives/patches.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/directives/patches.py')
-rw-r--r--sphinx/directives/patches.py42
1 files changed, 2 insertions, 40 deletions
diff --git a/sphinx/directives/patches.py b/sphinx/directives/patches.py
index a01d78332..876683ad0 100644
--- a/sphinx/directives/patches.py
+++ b/sphinx/directives/patches.py
@@ -1,16 +1,14 @@
import os
-import warnings
from os import path
-from typing import TYPE_CHECKING, Any, Dict, List, Sequence, Tuple, cast
+from typing import TYPE_CHECKING, Any, Dict, List, Sequence, cast
from docutils import nodes
-from docutils.nodes import Node, make_id, system_message
+from docutils.nodes import Node, make_id
from docutils.parsers.rst import directives
from docutils.parsers.rst.directives import images, tables
from docutils.parsers.rst.roles import set_classes
from sphinx import addnodes
-from sphinx.deprecation import RemovedInSphinx60Warning
from sphinx.directives import optional_int
from sphinx.domains.math import MathDomain
from sphinx.locale import __
@@ -78,24 +76,6 @@ class Meta(MetaBase, SphinxDirective):
return result
-class RSTTable(tables.RSTTable):
- """The table directive which sets source and line information to its caption.
-
- Only for docutils-0.13 or older version."""
-
- def run(self) -> List[Node]:
- warnings.warn('RSTTable is deprecated.',
- RemovedInSphinx60Warning)
- return super().run()
-
- def make_title(self) -> Tuple[nodes.title, List[system_message]]:
- title, message = super().make_title()
- if title:
- set_source_info(self, title)
-
- return title, message
-
-
class CSVTable(tables.CSVTable):
"""The csv-table directive which searches a CSV file from Sphinx project's source
directory when an absolute path is given via :file: option.
@@ -118,24 +98,6 @@ class CSVTable(tables.CSVTable):
return super().run()
-class ListTable(tables.ListTable):
- """The list-table directive which sets source and line information to its caption.
-
- Only for docutils-0.13 or older version."""
-
- def run(self) -> List[Node]:
- warnings.warn('ListTable is deprecated.',
- RemovedInSphinx60Warning)
- return super().run()
-
- def make_title(self) -> Tuple[nodes.title, List[system_message]]:
- title, message = super().make_title()
- if title:
- set_source_info(self, title)
-
- return title, message
-
-
class Code(SphinxDirective):
"""Parse and mark up content of a code block.