cache: Delete unused make_key()

This commit is contained in:
Brian Simpson
2016-07-12 14:40:24 -07:00
parent 6675a93ca9
commit 4040372953

View File

@@ -1115,20 +1115,6 @@ def make_key_id(*a, **kw):
h.update(_make_hashable(kw))
return h.hexdigest()
def make_key(iden, *a, **kw):
"""
A helper function for making memcached-usable cache keys out of
arbitrary arguments. Hashes the arguments but leaves the `iden'
human-readable
"""
h = md5()
iden = _make_hashable(iden)
h.update(iden)
h.update(_make_hashable(a))
h.update(_make_hashable(kw))
return '%s(%s)' % (iden, h.hexdigest())
def test_stale():
from pylons import app_globals as g