# HG changeset patch # User Dirkjan Ochtman # Date 2009-06-21 15:35:04 # Node ID e4e22a310b6297516f1e657a0d7c52240a0cdec0 # Parent 801cacf46e62d7281292915cbfcf92c19086ba22 extensions: remove now-useless pathdirs() function diff --git a/mercurial/extensions.py b/mercurial/extensions.py --- a/mercurial/extensions.py +++ b/mercurial/extensions.py @@ -118,19 +118,6 @@ def wrapfunction(container, funcname, wr 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'''