From 268bcb455673155e78b9762911cd30906516f97b Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Thu, 4 Jun 2015 17:36:29 +0100 Subject: Function belongs in controller --- app/Individual.php | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'app/Individual.php') diff --git a/app/Individual.php b/app/Individual.php index e1a1327cb3..abeb89bda7 100644 --- a/app/Individual.php +++ b/app/Individual.php @@ -1009,24 +1009,6 @@ class Individual extends GedcomRecord { return I18N::translate('Family with parents'); } - /** - * @todo this function does not belong in this class - * - * @param Family $family - * - * @return string - */ - public function getSpouseFamilyLabel(Family $family) { - $spouse = $family->getSpouse($this); - if ($spouse) { - return - /* I18N: %s is the spouse name */ - I18N::translate('Family with %s', $spouse->getFullName()); - } else { - return $family->getFullName(); - } - } - /** * get primary parents names for this individual * -- cgit v1.3