mercurial/util.py
changeset 3461 8b55c0ba8048
parent 3415 ec6f400cff4d
child 3537 3b07e223534b
child 3564 bb44489b901f
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -519,20 +519,6 @@ def is_win_9x():
     except AttributeError:
         return os.name == 'nt' and 'command' in os.environ.get('comspec', '')
 
-getuser_fallback = None
-
-def getuser():
-    '''return name of current user'''
-    try:
-        return getpass.getuser()
-    except ImportError:
-        # import of pwd will fail on windows - try fallback
-        if getuser_fallback:
-            return getuser_fallback()
-    # raised if win32api not available
-    raise Abort(_('user name not available - set USERNAME '
-                  'environment variable'))
-
 # Platform specific variants
 if os.name == 'nt':
     demandload(globals(), "msvcrt")