Commits

Georg Brandl committed a7d9495

Fix duplicate code.

  • Participants
  • Parent commits fef331c

Comments (0)

Files changed (1)

File sphinx/roles.py

     return role
 
 
-def menusel_role(typ, rawtext, text, lineno, inliner, options={}, content=[]):
-    return [nodes.emphasis(
-        rawtext,
-        utils.unescape(text).replace('-->', u'\N{TRIANGULAR BULLET}'))], []
-
-
 _litvar_re = re.compile('{([^}]+)}')
 
 def emph_literal_role(typ, rawtext, text, lineno, inliner,
     has_explicit_title, title, target = split_explicit_title(text)
     if not has_explicit_title:
         target, title = normalize_func_parens(env, target, title)
-    # remove parentheses from the target too
-    if target.endswith('()'):
-        target = target[:-2]
     return target, title