remove obsolete code

svn: r16292
This commit is contained in:
Gerald Britton 2010-12-16 21:08:41 +00:00
parent cd81324e9a
commit 5e33e5e81d

View File

@ -862,16 +862,6 @@ class DbBsddbRead(DbReadBase, Callback):
return handle_list return handle_list
return [] 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): def get_place_handles(self, sort_handles=True):
""" """
Return a list of database handles, one handle for each Place in Return a list of database handles, one handle for each Place in
@ -887,16 +877,6 @@ class DbBsddbRead(DbReadBase, Callback):
return handle_list return handle_list
return [] 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): def get_source_handles(self, sort_handles=True):
""" """
Return a list of database handles, one handle for each Source in Return a list of database handles, one handle for each Source in