# HG changeset patch # User Dirkjan Ochtman # Date 1245598504 -7200 # Node ID e4e22a310b6297516f1e657a0d7c52240a0cdec0 # Parent 801cacf46e62d7281292915cbfcf92c19086ba22 extensions: remove now-useless pathdirs() function diff -r 801cacf46e62 -r e4e22a310b62 mercurial/extensions.py --- a/mercurial/extensions.py Sun Jun 21 17:34:33 2009 +0200 +++ b/mercurial/extensions.py Sun Jun 21 17:35:04 2009 +0200 @@ -118,19 +118,6 @@ setattr(container, funcname, wrap) return origfn -def pathdirs(): - '''convert sys.path into a list of absolute, existing, unique paths - (taken from pydoc)''' - dirs = [] - normdirs = [] - for dir in sys.path: - dir = os.path.abspath(dir or '.') - normdir = os.path.normcase(dir) - if normdir not in normdirs and os.path.isdir(dir): - dirs.append(dir) - normdirs.append(normdir) - return dirs - def disabled(): '''find disabled extensions from hgext returns a dict of {name: desc}, and the max name length'''