From d52e55a50ca26d2ce8837aa9312d73f3c45eda95 Mon Sep 17 00:00:00 2001 From: "A. Murat Eren" Date: Thu, 15 Mar 2007 12:01:03 +0000 Subject: [PATCH] delete unnecessary util.py/unzip function. --- RefactorPlan | 4 ---- pisi/util.py | 3 --- 2 files changed, 7 deletions(-) diff --git a/RefactorPlan b/RefactorPlan index 014655fb..dea7005f 100644 --- a/RefactorPlan +++ b/RefactorPlan @@ -31,10 +31,6 @@ extra space at all. We can keep the number of file in the index though. That way we can calculate package size + (nr of files * inode size of fs) to give a more correct required disk size. -* what the heck is unzip there? it is not even used at all and defined like: -def unzip(seq): - return zip(*seq) - * Why in a world like this there exists *parse_package* util functions? These must be all methods of package class * Remove all unneeded util functions, most of them belongs its classes diff --git a/pisi/util.py b/pisi/util.py index e60dbb78..b191aafa 100644 --- a/pisi/util.py +++ b/pisi/util.py @@ -57,9 +57,6 @@ def every(pred, seq): def any(pred, seq): return reduce(operator.or_, map(pred, seq), False) -def unzip(seq): - return zip(*seq) - def concat(l): """Concatenate a list of lists.""" return reduce( operator.concat, l )