summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-12-30 18:11:45 +0000
committerfisharebest <fisharebest@gmail.com>2010-12-30 18:11:45 +0000
commit79856d10e43a67c24d8405dec43bf7dc79afcda4 (patch)
tree9291484fcaf48a58a61b7c323a52f7942d9d3dd0 /includes
parentb0ab007ceab1e2277bf7236e65b11698cc760ebf (diff)
downloadwebtrees-79856d10e43a67c24d8405dec43bf7dc79afcda4.tar.gz
webtrees-79856d10e43a67c24d8405dec43bf7dc79afcda4.tar.bz2
webtrees-79856d10e43a67c24d8405dec43bf7dc79afcda4.zip
Remove unused/dead code
Diffstat (limited to 'includes')
-rw-r--r--includes/controllers/family_ctrl.php12
-rw-r--r--includes/controllers/individual_ctrl.php1
2 files changed, 4 insertions, 9 deletions
diff --git a/includes/controllers/family_ctrl.php b/includes/controllers/family_ctrl.php
index 98db8d944e..217af93a81 100644
--- a/includes/controllers/family_ctrl.php
+++ b/includes/controllers/family_ctrl.php
@@ -97,8 +97,8 @@ class FamilyController extends BaseController {
case 'accept':
if (WT_USER_CAN_ACCEPT) {
accept_all_changes($this->famid, WT_GED_ID);
- $this->show_changes = false;
- $this->accept_success = true;
+ $this->show_changes=false;
+ $this->accept_success=true;
//-- check if we just deleted the record and redirect to index
$gedrec = find_family_record($this->famid, WT_GED_ID);
if (empty($gedrec)) {
@@ -106,15 +106,14 @@ class FamilyController extends BaseController {
exit;
}
$this->family = new Family($gedrec);
- $this->parents = find_parents($_REQUEST['famid']);
}
unset($_GET['action']);
break;
case 'undo':
if (WT_USER_CAN_ACCEPT) {
reject_all_changes($this->famid, WT_GED_ID);
- $this->show_changes = false;
- $this->accept_success = true;
+ $this->show_changes=false;
+ $this->accept_success=true;
$gedrec = find_family_record($this->famid, WT_GED_ID);
//-- check if we just deleted the record and redirect to index
if (empty($gedrec)) {
@@ -122,7 +121,6 @@ class FamilyController extends BaseController {
exit;
}
$this->family = new Family($gedrec);
- $this->parents = find_parents($this->famid);
}
unset($_GET['action']);
break;
@@ -134,8 +132,6 @@ class FamilyController extends BaseController {
$this->difffam = new Family($newrec);
$this->difffam->setChanged(true);
$this->family->diffMerge($this->difffam);
- //$this->famrec = $newrec;
- //$this->family = new Family($this->famrec);
}
$this->parents = array('HUSB'=>$this->family->getHusbId(), 'WIFE'=>$this->family->getWifeId());
diff --git a/includes/controllers/individual_ctrl.php b/includes/controllers/individual_ctrl.php
index 1d4d5170f0..00c3131509 100644
--- a/includes/controllers/individual_ctrl.php
+++ b/includes/controllers/individual_ctrl.php
@@ -145,7 +145,6 @@ class IndividualController extends BaseController {
if (!empty($newrec)) {
$this->diffindi = new Person($newrec);
$this->diffindi->setChanged(true);
- $gedrec = $newrec;
}
}