# HG changeset patch # User Anton Shestakov # Date 1589616132 -28800 # Node ID a9a08b3d50fb04253608d11ef4b81e7b09586939 # Parent 1208f8275b8baf671636e47f2c402c7bfe0b9ecc templatekw: remove unused _getusername() Last usage was removed in 901186e1fe05. diff -r 1208f8275b8b -r a9a08b3d50fb hgext3rd/evolve/templatekw.py --- 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