summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2017-07-08 17:49:37 +0100
committerGreg Roach <fisharebest@gmail.com>2017-07-09 22:45:06 +0100
commit908c8b3e5220f64a8ea88d22bdaa1b81d16a89e4 (patch)
treee494249631299436ba564f8a62807a60542810e0
parent8262180855f3e1018b62e890a9924a637531d647 (diff)
downloadwebtrees-908c8b3e5220f64a8ea88d22bdaa1b81d16a89e4.tar.gz
webtrees-908c8b3e5220f64a8ea88d22bdaa1b81d16a89e4.tar.bz2
webtrees-908c8b3e5220f64a8ea88d22bdaa1b81d16a89e4.zip
Unused code
-rw-r--r--app/Controller/FamilyBookController.php4
-rw-r--r--app/Menu.php3
-rw-r--r--app/Stats.php24
3 files changed, 2 insertions, 29 deletions
diff --git a/app/Controller/FamilyBookController.php b/app/Controller/FamilyBookController.php
index 492dec955a..4f205987b1 100644
--- a/app/Controller/FamilyBookController.php
+++ b/app/Controller/FamilyBookController.php
@@ -196,12 +196,12 @@ class FamilyBookController extends ChartController {
//This allows vertical line spacing to be consistent
if (count($person->getChildFamilies()) == 0) {
echo '<table cellspacing="0" cellpadding="0" border="0" >';
- $this->printEmptyBox($this->getBoxDimensions()->width, $this->getBoxDimensions()->height);
+ $this->printEmptyBox();
//-- recursively get the father’s family
$this->printPersonPedigree($person, $count + 1);
echo '</td><td></tr>';
- $this->printEmptyBox($this->getBoxDimensions()->width, $this->getBoxDimensions()->height);
+ $this->printEmptyBox();
//-- recursively get the mother’s family
$this->printPersonPedigree($person, $count + 1);
diff --git a/app/Menu.php b/app/Menu.php
index 161d50f08a..8092e8b35f 100644
--- a/app/Menu.php
+++ b/app/Menu.php
@@ -34,9 +34,6 @@ class Menu {
/** @var Menu[] An optional list of sub-menus. */
private $submenus;
- /** @var string Used internally to create javascript menus */
- private $parentmenu;
-
/** @var string Used to format javascript menus */
private $submenuclass;
diff --git a/app/Stats.php b/app/Stats.php
index eb8f3a4712..e430acd8f2 100644
--- a/app/Stats.php
+++ b/app/Stats.php
@@ -6392,30 +6392,6 @@ class Stats {
}
/**
- * Callback function to compare totals.
- *
- * @param array $a
- * @param array $b
- *
- * @return int
- */
- private function nameTotalSort($a, $b) {
- return $a['match'] - $b['match'];
- }
-
- /**
- * Callback function to compare totals.
- *
- * @param array $a
- * @param array $b
- *
- * @return int
- */
- private function nameTotalReverseSort($a, $b) {
- return $b['match'] - $a['match'];
- }
-
- /**
* Run an SQL query and cache the result.
*
* @param string $sql