summaryrefslogtreecommitdiff
path: root/sphinx/deprecation.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/deprecation.py')
-rw-r--r--sphinx/deprecation.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/sphinx/deprecation.py b/sphinx/deprecation.py
index 7d5a2d2ab..fbd5463cc 100644
--- a/sphinx/deprecation.py
+++ b/sphinx/deprecation.py
@@ -62,31 +62,3 @@ def _deprecation_warning(
warnings.warn(message + " Check CHANGES for Sphinx API modifications.",
warning_class, stacklevel=3)
-
-
-class OldJinjaSuffixWarning(PendingDeprecationWarning):
- """Warning class for ``_old_jinja_template_suffix_warning``.
-
- This class exists only so that extensions and themes can silence the legacy
- filename warning via Python's `warning control`_ mechanisms. See
- :ref:`theming-static-templates` for an example.
-
- This warning class will be removed, and the warning class changed to the
- appropriate RemovedInSphinx_0Warning no earlier than 31 December 2024, at
- which point the standard deprecation process for ``_t`` template suffixes
- will start.
-
- .. _warning control: https://docs.python.org/3/library/warnings.html#the-warnings-filter
- """
-
-
-def _old_jinja_template_suffix_warning(filename: str) -> None:
- if filename.endswith('_t'):
- warnings.warn(
- f"{filename!r}: the '_t' suffix for Jinja templates is deprecated. "
- "If the file is a template, use the suffix '.jinja' instead. "
- 'For more information, see '
- 'https://www.sphinx-doc.org/en/master/development/theming.html#static-templates',
- OldJinjaSuffixWarning,
- stacklevel=3,
- )