Remove two old functions, appear to be relics from 2.0.X branch, no longer used by...
authorAlec Warner <antarus@gentoo.org>
Fri, 22 Dec 2006 22:55:33 +0000 (22:55 -0000)
committerAlec Warner <antarus@gentoo.org>
Fri, 22 Dec 2006 22:55:33 +0000 (22:55 -0000)
svn path=/main/trunk/; revision=5353

pym/portage.py

index aef6729e694f3a008e5f02c0af061770b4a5aef0..4349dcca476bb29673bd9e0e78e4b218a43c2ce7 100644 (file)
@@ -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