From 5e33e5e81d67164731c9f3168c4892aaffb59644 Mon Sep 17 00:00:00 2001 From: Gerald Britton Date: Thu, 16 Dec 2010 21:08:41 +0000 Subject: [PATCH] remove obsolete code svn: r16292 --- src/gen/db/read.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/gen/db/read.py b/src/gen/db/read.py index d74033b7c..e3bf4f049 100644 --- a/src/gen/db/read.py +++ b/src/gen/db/read.py @@ -862,16 +862,6 @@ class DbBsddbRead(DbReadBase, Callback): return handle_list return [] - # Old code: does the same as above, but more complicated - if self.db_is_open: - if sort_handles: - with self.get_person_cursor() as cursor: - slist = sorted((data[3][5], key) for key, data in cursor) - return [x[1] for x in slist] - else: - return self.all_handles(self.person_map) - return [] - def get_place_handles(self, sort_handles=True): """ Return a list of database handles, one handle for each Place in @@ -887,16 +877,6 @@ class DbBsddbRead(DbReadBase, Callback): return handle_list return [] - # Old code: does the same as above, but more complicated - if self.db_is_open: - if sort_handles: - with self.get_place_cursor() as cursor: - slist = sorted((data[2], key) for key, data in cursor) - return [x[1] for x in slist] - else: - return self.all_handles(self.place_map) - return [] - def get_source_handles(self, sort_handles=True): """ Return a list of database handles, one handle for each Source in