From 39c388e5818fc084dc0dcb58777a710d6fcdab9e Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Tue, 11 Nov 2008 12:17:14 +0000 Subject: [PATCH] remove unused --- pisi/util.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pisi/util.py b/pisi/util.py index f73c2e67..c52cba24 100644 --- a/pisi/util.py +++ b/pisi/util.py @@ -209,18 +209,6 @@ def parentpath(a, sep = os.path.sep): def parenturi(a): return parentpath(a, '/') -# I'm not sure how necessary this is. Ahem. -def commonprefix(l): - """an improved version of os.path.commonprefix, - returns a list of path components""" - common = [] - comps = map(splitpath, l) - for i in range(0, min(len,l)): - compi = map(lambda x: x[i], comps) # get ith slice - if same(compi): - common.append(compi[0]) - return common - # but this one is necessary def subpath(a, b): """Find if path a is before b in the directory tree."""