summaryrefslogtreecommitdiff
path: root/sphinx/domains/javascript.py
diff options
context:
space:
mode:
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>2022-04-17 00:27:23 +0100
committerAdam Turner <9087854+AA-Turner@users.noreply.github.com>2022-04-17 00:47:21 +0100
commit267954edba498dcc132f98c6a6e7fd029e8f6bbb (patch)
treeca8111edddfa8e6d8790c72496584bdc6a1bd80f /sphinx/domains/javascript.py
parent9236b4247ee8e00ed89eb3ccc456236cdd8eaaea (diff)
downloadsphinx-git-267954edba498dcc132f98c6a6e7fd029e8f6bbb.tar.gz
Remove deprecated code for Sphinx 5.0
Diffstat (limited to 'sphinx/domains/javascript.py')
-rw-r--r--sphinx/domains/javascript.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/sphinx/domains/javascript.py b/sphinx/domains/javascript.py
index ab16cdd85..60ea31e94 100644
--- a/sphinx/domains/javascript.py
+++ b/sphinx/domains/javascript.py
@@ -114,13 +114,6 @@ class JSObject(ObjectDescription[Tuple[str, str]]):
fullname = (mod_name + '.' if mod_name else '') + name_obj[0]
node_id = make_id(self.env, self.state.document, '', fullname)
signode['ids'].append(node_id)
-
- # Assign old styled node_id not to break old hyperlinks (if possible)
- # Note: Will be removed in Sphinx-5.0 (RemovedInSphinx50Warning)
- old_node_id = self.make_old_id(fullname)
- if old_node_id not in self.state.document.ids and old_node_id not in signode['ids']:
- signode['ids'].append(old_node_id)
-
self.state.document.note_explicit_target(signode)
domain = cast(JavaScriptDomain, self.env.get_domain('js'))
@@ -280,13 +273,6 @@ class JSModule(SphinxDirective):
location=(self.env.docname, self.lineno))
target = nodes.target('', '', ids=[node_id], ismod=True)
-
- # Assign old styled node_id not to break old hyperlinks (if possible)
- # Note: Will be removed in Sphinx-5.0 (RemovedInSphinx50Warning)
- old_node_id = self.make_old_id(mod_name)
- if old_node_id not in self.state.document.ids and old_node_id not in target['ids']:
- target['ids'].append(old_node_id)
-
self.state.document.note_explicit_target(target)
ret.append(target)
indextext = _('%s (module)') % mod_name