summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>2023-04-28 10:50:57 +0100
committerGitHub <noreply@github.com>2023-04-28 10:50:57 +0100
commit77fd819a09881102bdd48593cc69ec164b2495c8 (patch)
treee0f6e47f36f5dca283350b84170dde57808edbb9
parent4be56f3b7ddf44265d2e7a8f26a33ba46be52ab9 (diff)
downloadsphinx-git-77fd819a09881102bdd48593cc69ec164b2495c8.tar.gz
Remove deprecated ``LaTeXTranslator.docclasses`` attribute (#11382)
-rw-r--r--CHANGES2
-rw-r--r--sphinx/writers/latex.py9
2 files changed, 2 insertions, 9 deletions
diff --git a/CHANGES b/CHANGES
index b76832c83..1bf8c9916 100644
--- a/CHANGES
+++ b/CHANGES
@@ -26,6 +26,8 @@ Incompatible changes
* #11379: Make the ``env`` argument to ``Builder`` subclasses required.
* #11380: autosummary: Always emit grouped import exceptions.
* #11381: Remove deprecated ``style`` key for HTML templates.
+* #11382: Remove deprecated ``sphinx.writers.latex.LaTeXTranslator.docclasses``
+ attribute.
Deprecated
----------
diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py
index 5116c2181..e7d31b70e 100644
--- a/sphinx/writers/latex.py
+++ b/sphinx/writers/latex.py
@@ -7,7 +7,6 @@ docutils sandbox.
from __future__ import annotations
import re
-import warnings
from collections import defaultdict
from os import path
from typing import TYPE_CHECKING, Any, Iterable, cast
@@ -16,7 +15,6 @@ from docutils import nodes, writers
from docutils.nodes import Element, Node, Text
from sphinx import addnodes, highlighting
-from sphinx.deprecation import RemovedInSphinx70Warning
from sphinx.domains import IndexEntry
from sphinx.domains.std import StandardDomain
from sphinx.errors import SphinxError
@@ -2121,13 +2119,6 @@ class LaTeXTranslator(SphinxTranslator):
def depart_math_reference(self, node: Element) -> None:
pass
- @property
- def docclasses(self) -> tuple[str, str]:
- """Prepends prefix to sphinx document classes"""
- warnings.warn('LaTeXWriter.docclasses() is deprecated.',
- RemovedInSphinx70Warning, stacklevel=2)
- return ('howto', 'manual')
-
# FIXME: Workaround to avoid circular import
# refs: https://github.com/sphinx-doc/sphinx/issues/5433