changeset 5326:a9a08b3d50fb

templatekw: remove unused _getusername() Last usage was removed in 901186e1fe05.
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 16 May 2020 16:02:12 +0800
parents 1208f8275b8b
children db9a64d12014
files hgext3rd/evolve/templatekw.py
diffstat 1 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/templatekw.py	Sat May 16 15:48:52 2020 +0800
+++ b/hgext3rd/evolve/templatekw.py	Sat May 16 16:02:12 2020 +0800
@@ -9,7 +9,6 @@
 """
 
 from . import (
-    error,
     exthelper,
     obshistory,
 )
@@ -69,10 +68,3 @@
     _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