diff options
author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2022-06-16 21:05:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-16 21:05:37 +0100 |
commit | ce31e1c0c7b32f6be93186e0fef076ef65ff0b05 (patch) | |
tree | 7365b3ac8bb21c5ecee71596ad56f680527efd78 /sphinx/ext/autodoc/directive.py | |
parent | 7e68154e49fbb260f7ffee9791bfafdb7fd2e119 (diff) | |
download | sphinx-git-ce31e1c0c7b32f6be93186e0fef076ef65ff0b05.tar.gz |
Remove deprecated items for Sphinx 6.0 (#10471)
Diffstat (limited to 'sphinx/ext/autodoc/directive.py')
-rw-r--r-- | sphinx/ext/autodoc/directive.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/sphinx/ext/autodoc/directive.py b/sphinx/ext/autodoc/directive.py index be2248320..a54ebe763 100644 --- a/sphinx/ext/autodoc/directive.py +++ b/sphinx/ext/autodoc/directive.py @@ -1,4 +1,3 @@ -import warnings from typing import Any, Callable, Dict, List, Set, Type from docutils import nodes @@ -8,7 +7,6 @@ from docutils.statemachine import StringList from docutils.utils import Reporter, assemble_option_dict from sphinx.config import Config -from sphinx.deprecation import RemovedInSphinx60Warning from sphinx.environment import BuildEnvironment from sphinx.ext.autodoc import Documenter, Options from sphinx.util import logging @@ -52,18 +50,6 @@ class DocumenterBridge: self.result = StringList() self.state = state - def warn(self, msg: str) -> None: - warnings.warn('DocumenterBridge.warn is deprecated. Please use sphinx.util.logging ' - 'module instead.', - RemovedInSphinx60Warning, stacklevel=2) - logger.warning(msg, location=(self.env.docname, self.lineno)) - - @property - def filename_set(self) -> Set: - warnings.warn('DocumenterBridge.filename_set is deprecated.', - RemovedInSphinx60Warning, stacklevel=2) - return self.record_dependencies - def process_documenter_options(documenter: Type[Documenter], config: Config, options: Dict ) -> Options: |