summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2006-12-22 22:55:33 +0000
committerAlec Warner <antarus@gentoo.org>2006-12-22 22:55:33 +0000
commit3f1c8f55f56b39955f0ba4c927be2d780e9f3a4a (patch)
treefdbe4c6e478b8d68ef8dd8ee6d84326f728b97a3
parent541d8f89edabfa9730a37c0680a5343421eef4e0 (diff)
downloadportage-3f1c8f55f56b39955f0ba4c927be2d780e9f3a4a.tar.gz
portage-3f1c8f55f56b39955f0ba4c927be2d780e9f3a4a.tar.bz2
portage-3f1c8f55f56b39955f0ba4c927be2d780e9f3a4a.zip
Remove two old functions, appear to be relics from 2.0.X branch, no longer used by portage or gentoolkit or esearch
svn path=/main/trunk/; revision=5353
-rw-r--r--pym/portage.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/pym/portage.py b/pym/portage.py
index aef6729e6..4349dcca4 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -168,32 +168,6 @@ def abssymlink(symlink):
mylink=mydir+"/"+mylink
return os.path.normpath(mylink)
-def suffix_array(array,suffix,doblanks=1):
- """Appends a given suffix to each element in an Array/List/Tuple.
- Returns a List."""
- if type(array) not in [types.ListType, types.TupleType]:
- raise TypeError, "List or Tuple expected. Got %s" % type(array)
- newarray=[]
- for x in array:
- if x or doblanks:
- newarray.append(x + suffix)
- else:
- newarray.append(x)
- return newarray
-
-def prefix_array(array,prefix,doblanks=1):
- """Prepends a given prefix to each element in an Array/List/Tuple.
- Returns a List."""
- if type(array) not in [types.ListType, types.TupleType]:
- raise TypeError, "List or Tuple expected. Got %s" % type(array)
- newarray=[]
- for x in array:
- if x or doblanks:
- newarray.append(prefix + x)
- else:
- newarray.append(x)
- return newarray
-
dircache = {}
cacheHit=0
cacheMiss=0