* you swap like C, not used and not needed _yet_.

This commit is contained in:
Faik Uygur
2006-09-29 19:13:09 +00:00
parent 0f8421bf9c
commit 0f2dce23da
-9
View File
@@ -54,15 +54,6 @@ class RepoDB(object):
l = self.list() l = self.list()
return l[ix] 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): def has_repo(self, name):
name = str(name) name = str(name)
return self.d.has_key("repo-" + name) return self.d.has_key("repo-" + name)