aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaëtan Gilbert2019-04-23 14:08:20 +0200
committerGaëtan Gilbert2019-04-23 14:08:20 +0200
commit1d61a85d8d410b64e907c306886815295b8d2fc5 (patch)
tree967967332b6f66a3ac1e2826fa7abbd32ce13d06
parentf8f26d9843a109715f14471fff290f358576f16a (diff)
parentb6cfffeb940b93d1bf20c0068a0da69fc3024bab (diff)
Merge PR #9978: Remove duplicate copy of _warn_if_duplicate_name.
Reviewed-by: SkySkimmer
-rw-r--r--doc/tools/coqrst/coqdomain.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/doc/tools/coqrst/coqdomain.py b/doc/tools/coqrst/coqdomain.py
index eaf1b2c2ad..0ade9fdbf5 100644
--- a/doc/tools/coqrst/coqdomain.py
+++ b/doc/tools/coqrst/coqdomain.py
@@ -149,13 +149,6 @@ class CoqObject(ObjectDescription):
msg = MSG.format(name, self.env.doc2path(objects[name][0]))
self.state_machine.reporter.warning(msg, line=self.lineno)
- def _warn_if_duplicate_name(self, objects, name):
- """Check that two objects in the same domain don't have the same name."""
- if name in objects:
- MSG = 'Duplicate object: {}; other is at {}'
- msg = MSG.format(name, self.env.doc2path(objects[name][0]))
- self.state_machine.reporter.warning(msg, line=self.lineno)
-
def _record_name(self, name, target_id):
"""Record a name, mapping it to target_id