Commit 92305e5e authored by Anton Shestakov's avatar Anton Shestakov
Browse files

templatekw: remove unused _getusername()

Last usage was removed in 901186e1fe05.
parent 1208f8275b8b
......@@ -9,7 +9,6 @@
"""
from . import (
error,
exthelper,
obshistory,
)
......@@ -69,10 +68,3 @@ if util.safehasattr(_ss, '_requires'):
_tk(showsuccessors)
else:
templatekw.keywords[b"successors"] = _ss
def _getusername(ui):
"""the default username in the config or None"""
try:
return ui.username()
except error.Abort: # no easy way to avoid ui raising Abort here :-/
return None
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment