From b544c48e9e76a144c1b2731e2e4bd7c64082e383 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Wed, 12 Nov 2008 09:55:10 +0000 Subject: [PATCH] =?UTF-8?q?#2494=20Unused=20functions=20in=20Relationship.?= =?UTF-8?q?py,=20patch=20=20=20=20=20=20=20=20by=20Reinhard=20M=C3=BCller?= =?UTF-8?q?=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn: r11294 --- src/Relationship.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/Relationship.py b/src/Relationship.py index 69fb6833a..cda4270b5 100644 --- a/src/Relationship.py +++ b/src/Relationship.py @@ -585,12 +585,6 @@ class RelationshipCalculator: # birth parent of the other person return self.UNKNOWN_SIB - def get_parents(self, level): - if level>len(_parents_level)-1: - return "distant ancestors (%d generations)" % level - else: - return _parents_level[level] - def _get_birth_parents(self, db, person): """ method that returns the birthparents of a person as tuple (mother handle, father handle), if no known birthparent, the @@ -1373,20 +1367,6 @@ class RelationshipCalculator: common_list.append(commons[rel_str]) return (relstrings, common_list) - def get_grandparents_string(self, db, orig_person, other_person): - """ - returns a string representing the relationship between the two people - if the other_person is a grandparent in general terms and in plural - """ - (rel_str, dist_orig, dist_other) = self.get_one_relationship(db, - orig_person, other_person, - extra_info = True) - - if dist_other == 0: - return self.get_parents(dist_orig) - else: - return None - def get_plural_relationship_string(self, Ga, Gb): """ Provide a string that describes the relationsip between a person, and