From 0f2dce23da3b8394164c0d47fa9c00408fb84e43 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Fri, 29 Sep 2006 19:13:09 +0000 Subject: [PATCH] * you swap like C, not used and not needed _yet_. --- pisi/repodb.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pisi/repodb.py b/pisi/repodb.py index f00701ff..070efb0b 100644 --- a/pisi/repodb.py +++ b/pisi/repodb.py @@ -54,15 +54,6 @@ class RepoDB(object): l = self.list() return l[ix] - def swap(self, x, y): - def proc(txn): - l = self.d.get("order", txn) - t = l[x] - l[x] = l[y] - l[y] = t - self.d.put("order", l, txn) - self.d.txn_proc(proc, txn) - def has_repo(self, name): name = str(name) return self.d.has_key("repo-" + name)