diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-03-07 20:43:25 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-04-29 15:12:39 +0900 |
commit | a86346aca6bf99a8920da366caaad7c47809ecce (patch) | |
tree | 7aa786e7817f9f3e6a338d06df2f02534d91a4c5 /sphinx/addnodes.py | |
parent | aa773cbc88e692df731c78353a1043201bcb9f91 (diff) | |
download | sphinx-git-a86346aca6bf99a8920da366caaad7c47809ecce.tar.gz |
Remove deprecated features marked as RemovedInSphinx40Warning
Diffstat (limited to 'sphinx/addnodes.py')
-rw-r--r-- | sphinx/addnodes.py | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/sphinx/addnodes.py b/sphinx/addnodes.py index f02f3b5d7..42a0faed6 100644 --- a/sphinx/addnodes.py +++ b/sphinx/addnodes.py @@ -8,14 +8,11 @@ :license: BSD, see LICENSE for details. """ -import warnings from typing import Any, Dict, List, Sequence from typing import TYPE_CHECKING from docutils import nodes -from docutils.nodes import Element, Node - -from sphinx.deprecation import RemovedInSphinx40Warning +from docutils.nodes import Element if TYPE_CHECKING: from sphinx.application import Sphinx @@ -325,20 +322,6 @@ class literal_strong(nodes.strong, not_smartquotable): """ -class abbreviation(nodes.abbreviation): - """Node for abbreviations with explanations. - - .. deprecated:: 2.0 - """ - - def __init__(self, rawsource: str = '', text: str = '', - *children: Node, **attributes: Any) -> None: - warnings.warn("abbrevition node for Sphinx was replaced by docutils'.", - RemovedInSphinx40Warning, stacklevel=2) - - super().__init__(rawsource, text, *children, **attributes) - - class manpage(nodes.Inline, nodes.FixedTextElement): """Node for references to manpages.""" |