summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-09-06 08:02:32 +0000
committerZac Medico <zmedico@gentoo.org>2009-09-06 08:02:32 +0000
commitbec027318abfd293bea1d743dd8d2fa47aae0f2e (patch)
tree2dab6f5000b6529a74eb4e1d8a9a1be25d69a2f3
parent63357c43454a783f015bd4c8c57e438aa272f79f (diff)
downloadportage-bec027318abfd293bea1d743dd8d2fa47aae0f2e.tar.gz
portage-bec027318abfd293bea1d743dd8d2fa47aae0f2e.tar.bz2
portage-bec027318abfd293bea1d743dd8d2fa47aae0f2e.zip
Remove unused vardbapi._counter_hash() method.
svn path=/main/trunk/; revision=14207
-rw-r--r--pym/portage/dbapi/vartree.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index b60316ee5..905dc9c30 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -853,25 +853,6 @@ class vardbapi(dbapi):
level=logging.ERROR, noiselevel=-1)
return 0
- def _counter_hash(self):
- try:
- from hashlib import md5 as new_hash
- except ImportError:
- from md5 import new as new_hash
- h = new_hash()
- aux_keys = ["COUNTER"]
- cpv_list = self.cpv_all()
- cpv_list.sort()
- for cpv in cpv_list:
- try:
- counter, = self.aux_get(cpv, aux_keys)
- except KeyError:
- continue
- h.update(_unicode_encode(counter,
- encoding=_encodings['repo.content'],
- errors='backslashreplace'))
- return h.hexdigest()
-
def cpv_inject(self, mycpv):
"injects a real package into our on-disk database; assumes mycpv is valid and doesn't already exist"
os.makedirs(self.getpath(mycpv))