summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2014-09-18 21:29:55 +0100
committerGreg Roach <fisharebest@gmail.com>2014-09-18 21:29:55 +0100
commitf0b7ed18c5ba7ec20b85c58ace1700983779ba42 (patch)
tree599027e46d2d1e9fdd401ef5182893e2a62ccf05 /library
parent5b4fd708c98ec8db636f3260a5d42f2ed8a64334 (diff)
downloadwebtrees-f0b7ed18c5ba7ec20b85c58ace1700983779ba42.tar.gz
webtrees-f0b7ed18c5ba7ec20b85c58ace1700983779ba42.tar.bz2
webtrees-f0b7ed18c5ba7ec20b85c58ace1700983779ba42.zip
Unused code
Diffstat (limited to 'library')
-rw-r--r--library/WT/Controller/AdvancedSearch.php2
-rw-r--r--library/WT/Controller/Hourglass.php2
-rw-r--r--library/WT/Controller/Lifespan.php2
-rw-r--r--library/WT/Controller/Media.php6
-rw-r--r--library/WT/Controller/Note.php11
5 files changed, 5 insertions, 18 deletions
diff --git a/library/WT/Controller/AdvancedSearch.php b/library/WT/Controller/AdvancedSearch.php
index 689a14d03f..4bf724a5e3 100644
--- a/library/WT/Controller/AdvancedSearch.php
+++ b/library/WT/Controller/AdvancedSearch.php
@@ -187,7 +187,7 @@ class WT_Controller_AdvancedSearch extends WT_Controller_Search {
}
}
- function advancedSearch($justSql=false, $table="individuals", $prefix="i") {
+ function advancedSearch() {
$this->myindilist = array ();
$fct = count($this->fields);
if ($fct==0) {
diff --git a/library/WT/Controller/Hourglass.php b/library/WT/Controller/Hourglass.php
index ea7d9155f9..adb149ac9a 100644
--- a/library/WT/Controller/Hourglass.php
+++ b/library/WT/Controller/Hourglass.php
@@ -40,7 +40,7 @@ class WT_Controller_Hourglass extends WT_Controller_Chart {
// the following are ajax variables //
var $ARID;
- function __construct($rootid='', $show_full=1, $generations=3) {
+ function __construct($rootid='', $show_full=1) {
global $bheight, $bwidth, $cbwidth, $cbheight, $bhalfheight, $PEDIGREE_FULL_DETAILS, $MAX_DESCENDANCY_GENERATIONS;
global $TEXT_DIRECTION, $show_full;
diff --git a/library/WT/Controller/Lifespan.php b/library/WT/Controller/Lifespan.php
index 7280836f43..e2d252eb62 100644
--- a/library/WT/Controller/Lifespan.php
+++ b/library/WT/Controller/Lifespan.php
@@ -268,7 +268,7 @@ class WT_Controller_Lifespan extends WT_Controller_Page {
}
//method used to place the person boxes onto the timeline
- function fillTL($ar, $int, $top) {
+ function fillTL($ar, $top) {
global $maxX, $zindex;
$zindex = count($ar);
diff --git a/library/WT/Controller/Media.php b/library/WT/Controller/Media.php
index c94f5d6fc7..80dd39f309 100644
--- a/library/WT/Controller/Media.php
+++ b/library/WT/Controller/Media.php
@@ -108,13 +108,11 @@ class WT_Controller_Media extends WT_Controller_GedcomRecord {
}
/**
- * return a list of facts
- *
- * @param bool $includeFileName
+ * Return a list of facts
*
* @return array
*/
- function getFacts($includeFileName=true) {
+ function getFacts() {
$facts = $this->record->getFacts();
// Add some dummy facts to show additional information
diff --git a/library/WT/Controller/Note.php b/library/WT/Controller/Note.php
index 5c95aff884..d7ef5dc412 100644
--- a/library/WT/Controller/Note.php
+++ b/library/WT/Controller/Note.php
@@ -35,8 +35,6 @@ class WT_Controller_Note extends WT_Controller_GedcomRecord {
* get edit menu
*/
function getEditMenu() {
- $SHOW_GEDCOM_RECORD=get_gedcom_setting(WT_GED_ID, 'SHOW_GEDCOM_RECORD');
-
if (!$this->record || $this->record->isOld()) {
return null;
}
@@ -50,15 +48,6 @@ class WT_Controller_Note extends WT_Controller_GedcomRecord {
$menu->addSubmenu($submenu);
}
- // edit raw
- /* Does not currently work - NOTE records do not contain nice level 1 facts
- if (Auth::isAdmin() || WT_USER_CAN_EDIT && $SHOW_GEDCOM_RECORD) {
- $submenu = new WT_Menu(WT_I18N::translate('Edit raw GEDCOM'), '#', 'menu-note-editraw');
- $submenu->addOnclick("return edit_raw('" . $this->record->getXref() . "');");
- $menu->addSubmenu($submenu);
- }
- */
-
// delete
if (WT_USER_CAN_EDIT) {
$submenu = new WT_Menu(WT_I18N::translate('Delete'), '#', 'menu-note-del');