diff options
author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2023-04-27 01:01:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-27 01:01:09 +0100 |
commit | 8dd44d1e13c4a85f085a33422a05fbdfe685e8f1 (patch) | |
tree | 16b661c01a53aaffcf73c1a4dbe82ebcac746bcb /sphinx/domains/javascript.py | |
parent | 124957a89c079296c98299ded7dec50e2e385b78 (diff) | |
download | sphinx-git-8dd44d1e13c4a85f085a33422a05fbdfe685e8f1.tar.gz |
Remove deprecated ``make_old_id`` functions (#11360)
Diffstat (limited to 'sphinx/domains/javascript.py')
-rw-r--r-- | sphinx/domains/javascript.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/sphinx/domains/javascript.py b/sphinx/domains/javascript.py index 7f07c20b5..093e291ca 100644 --- a/sphinx/domains/javascript.py +++ b/sphinx/domains/javascript.py @@ -207,14 +207,6 @@ class JSObject(ObjectDescription[Tuple[str, str]]): self.env.ref_context['js:object'] = (objects[-1] if len(objects) > 0 else None) - def make_old_id(self, fullname: str) -> str: - """Generate old styled node_id for JS objects. - - .. note:: Old Styled node_id was used until Sphinx-3.0. - This will be removed in Sphinx-5.0. - """ - return fullname.replace('$', '_S_') - def _toc_entry_name(self, sig_node: desc_signature) -> str: if not sig_node.get('_toc_parts'): return '' @@ -321,14 +313,6 @@ class JSModule(SphinxDirective): ret.extend(content_node.children) return ret - def make_old_id(self, modname: str) -> str: - """Generate old styled node_id for JS modules. - - .. note:: Old Styled node_id was used until Sphinx-3.0. - This will be removed in Sphinx-5.0. - """ - return 'module-' + modname - class JSXRefRole(XRefRole): def process_link(self, env: BuildEnvironment, refnode: Element, |