extensions: remove now-useless pathdirs() function
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Sun, 21 Jun 2009 17:35:04 +0200
changeset 8876 e4e22a310b62
parent 8875 801cacf46e62
child 8877 08636e18268f
extensions: remove now-useless pathdirs() function
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'''