summaryrefslogtreecommitdiff
path: root/doc/tools
diff options
context:
space:
mode:
authorMax Hilbrunner <m.hilbrunner@gmail.com>2021-08-17 15:06:54 +0200
committerMax Hilbrunner <m.hilbrunner@gmail.com>2021-08-17 16:10:28 +0200
commit5161c97c9c7d6c1f6e4d0264fd9a9d9ea7f7be27 (patch)
tree08f24b87781f70b0ffa849bb771d0b644123379f /doc/tools
parent81f7d1890baf0481f65100aa0efa875da0a0fa30 (diff)
Remove underscore hacks
Way less cruft. :) Co-authored-by: Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com>
Diffstat (limited to 'doc/tools')
-rwxr-xr-xdoc/tools/makerst.py3
1 files changed, 0 insertions, 3 deletions
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}<enum_{1}_{0}>`".format(e, c)