From 5161c97c9c7d6c1f6e4d0264fd9a9d9ea7f7be27 Mon Sep 17 00:00:00 2001 From: Max Hilbrunner Date: Tue, 17 Aug 2021 15:06:54 +0200 Subject: Remove underscore hacks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Way less cruft. :) Co-authored-by: Ignacio Roldán Etcheverry --- doc/tools/makerst.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'doc/tools/makerst.py') diff --git a/doc/tools/makerst.py b/doc/tools/makerst.py index 6f9a07af1f..4691b61e1b 100755 --- a/doc/tools/makerst.py +++ b/doc/tools/makerst.py @@ -1031,9 +1031,6 @@ def make_enum(t, state): # type: (str, State) -> str if c in state.classes and e not in state.classes[c].enums: c = "@GlobalScope" - if not c in state.classes and c.startswith("_"): - c = c[1:] # Remove the underscore prefix - if c in state.classes and e in state.classes[c].enums: return ":ref:`{0}`".format(e, c) -- cgit v1.2.3