diff options
Diffstat (limited to 'sphinx/util/docstrings.py')
-rw-r--r-- | sphinx/util/docstrings.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/sphinx/util/docstrings.py b/sphinx/util/docstrings.py index 6f341d80e..eb3acefd4 100644 --- a/sphinx/util/docstrings.py +++ b/sphinx/util/docstrings.py @@ -2,13 +2,10 @@ import re import sys -import warnings from typing import Dict, List, Tuple from docutils.parsers.rst.states import Body -from sphinx.deprecation import RemovedInSphinx60Warning - field_list_item_re = re.compile(Body.patterns['field_marker']) @@ -41,14 +38,6 @@ def separate_metadata(s: str) -> Tuple[str, Dict[str, str]]: return '\n'.join(lines), metadata -def extract_metadata(s: str) -> Dict[str, str]: - warnings.warn("extract_metadata() is deprecated.", - RemovedInSphinx60Warning, stacklevel=2) - - docstring, metadata = separate_metadata(s) - return metadata - - def prepare_docstring(s: str, tabsize: int = 8) -> List[str]: """Convert a docstring into lines of parseable reST. Remove common leading indentation, where the indentation of the first line is ignored. |