From 304935bb9f3f8b4159640b17cbc5ff3eafa4de3d Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Sat, 23 Apr 2016 23:02:16 +0200 Subject: [PATCH] Remove popitem() which was added for the lru cache --- waflib/Utils.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/waflib/Utils.py b/waflib/Utils.py index bc316f40..262f7ca2 100644 --- a/waflib/Utils.py +++ b/waflib/Utils.py @@ -114,14 +114,6 @@ class ordered_iter_dict(dict): return reversed(self.lst) def keys(self): return reversed(self.lst) - def popitem(self, last=True): - if last: - key = self.lst.popright() - else: - key = self.lst.popleft() - ret = (key, dict.__getitem__(self, key)) - dict.__delitem__(self, key) - return ret class lru_node(object): __slots__ = ('next', 'prev', 'key', 'val')