From 8f8a78bb88ee2811aef112f8484d308293265edb Mon Sep 17 00:00:00 2001 From: Tim Bell Date: Wed, 11 Apr 2018 09:37:32 +1000 Subject: [PATCH] Remove now-unused csort() --- pdfminer/utils.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pdfminer/utils.py b/pdfminer/utils.py index 9cbcbb3..f2258b0 100644 --- a/pdfminer/utils.py +++ b/pdfminer/utils.py @@ -145,13 +145,6 @@ def uniq(objs): return -# csort -def csort(objs, key): - """Order-preserving sorting function.""" - idxs = dict((obj, i) for (i, obj) in enumerate(objs)) - return sorted(objs, key=lambda obj: (key(obj), idxs[obj])) - - # fsplit def fsplit(pred, objs): """Split a list into two classes according to the predicate."""