[devtools] drop unused DumbOrderedDict2 class
authorJulien Cristau <julien.cristau@logilab.fr>
Tue, 29 Mar 2016 17:00:13 +0200
changeset 11227 1c7ce09d2a36
parent 11226 6b0807ba056a
child 11228 3c9537677e73
[devtools] drop unused DumbOrderedDict2 class
cubicweb/devtools/repotest.py
--- a/cubicweb/devtools/repotest.py	Tue Mar 29 16:56:59 2016 +0200
+++ b/cubicweb/devtools/repotest.py	Tue Mar 29 17:00:13 2016 +0200
@@ -100,14 +100,6 @@
     def items(self):
         return [x for x in list.__iter__(self)]
 
-class DumbOrderedDict2(object):
-    def __init__(self, origdict, sortkey):
-        self.origdict = origdict
-        self.sortkey = sortkey
-    def __getattr__(self, attr):
-        return getattr(self.origdict, attr)
-    def __iter__(self):
-        return iter(sorted(self.origdict, key=self.sortkey))
 
 def schema_eids_idx(schema):
     """return a dictionary mapping schema types to their eids so we can reread