summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2014-09-20 09:29:14 +0100
committerGreg Roach <fisharebest@gmail.com>2014-09-20 09:29:14 +0100
commitd62ac319e14c0756c0c09b664bc5b7970e6c0883 (patch)
treeb944dd34eee9284493d348a51a5835633609436c /library
parent13fba0e37daf78573905c5f362a9a22e528fd42c (diff)
downloadwebtrees-d62ac319e14c0756c0c09b664bc5b7970e6c0883.tar.gz
webtrees-d62ac319e14c0756c0c09b664bc5b7970e6c0883.tar.bz2
webtrees-d62ac319e14c0756c0c09b664bc5b7970e6c0883.zip
Remove unused code
Diffstat (limited to 'library')
-rw-r--r--library/WT/Family.php1
-rw-r--r--library/WT/GedcomRecord.php5
-rw-r--r--library/WT/Individual.php1
-rw-r--r--library/WT/Media.php1
-rw-r--r--library/WT/Note.php1
-rw-r--r--library/WT/Repository.php1
-rw-r--r--library/WT/Source.php1
7 files changed, 0 insertions, 11 deletions
diff --git a/library/WT/Family.php b/library/WT/Family.php
index 4463545ba1..dd467d1c4f 100644
--- a/library/WT/Family.php
+++ b/library/WT/Family.php
@@ -23,7 +23,6 @@
class WT_Family extends WT_GedcomRecord {
const RECORD_TYPE = 'FAM';
- const SQL_FETCH = "SELECT f_gedcom FROM `##families` WHERE f_id=? AND f_file=?";
const URL_PREFIX = 'family.php?famid=';
private $husb = null;
diff --git a/library/WT/GedcomRecord.php b/library/WT/GedcomRecord.php
index eb55ba6ec1..c83f21cc94 100644
--- a/library/WT/GedcomRecord.php
+++ b/library/WT/GedcomRecord.php
@@ -26,7 +26,6 @@ use WT\Log;
class WT_GedcomRecord {
const RECORD_TYPE = 'UNKNOWN';
- const SQL_FETCH = "SELECT o_gedcom FROM `##other` WHERE o_id=? AND o_file=?";
const URL_PREFIX = 'gedrecord.php?pid=';
protected $xref = null; // The record identifier
@@ -984,10 +983,6 @@ class WT_GedcomRecord {
return WT_GedcomRecord::getInstance($xref);
}
- private static function readRecord($xref, $gedcom_id) {
- return WT_DB::prepare(static::SQL_FETCH)->execute(array($xref, $gedcom_id))->fetchOne();
- }
-
public function updateRecord($gedcom, $update_chan) {
// MSDOS line endings will break things in horrible ways
$gedcom = preg_replace('/[\r\n]+/', "\n", $gedcom);
diff --git a/library/WT/Individual.php b/library/WT/Individual.php
index 64b1b2b268..48a627874f 100644
--- a/library/WT/Individual.php
+++ b/library/WT/Individual.php
@@ -25,7 +25,6 @@ use Fisharebest\ExtCalendar\GregorianCalendar;
class WT_Individual extends WT_GedcomRecord {
const RECORD_TYPE = 'INDI';
- const SQL_FETCH = "SELECT i_gedcom FROM `##individuals` WHERE i_id=? AND i_file=?";
const URL_PREFIX = 'individual.php?pid=';
var $generation; // used in some lists to keep track of this individual’s generation in that list
diff --git a/library/WT/Media.php b/library/WT/Media.php
index ece1d1c775..148dc4bead 100644
--- a/library/WT/Media.php
+++ b/library/WT/Media.php
@@ -25,7 +25,6 @@ use WT\Log;
class WT_Media extends WT_GedcomRecord {
const RECORD_TYPE = 'OBJE';
- const SQL_FETCH = "SELECT m_gedcom FROM `##media` WHERE m_id=? AND m_file=?";
const URL_PREFIX = 'mediaviewer.php?mid=';
public $title = null; // TODO: these should be private, with getTitle() and getFilename() functions
diff --git a/library/WT/Note.php b/library/WT/Note.php
index 68c9608a69..61af3e09ef 100644
--- a/library/WT/Note.php
+++ b/library/WT/Note.php
@@ -23,7 +23,6 @@
class WT_Note extends WT_GedcomRecord {
const RECORD_TYPE = 'NOTE';
- const SQL_FETCH = "SELECT o_gedcom FROM `##other` WHERE o_id=? AND o_file=?";
const URL_PREFIX = 'note.php?nid=';
// Get the text contents of the note
diff --git a/library/WT/Repository.php b/library/WT/Repository.php
index 314a218d8b..78df746312 100644
--- a/library/WT/Repository.php
+++ b/library/WT/Repository.php
@@ -23,7 +23,6 @@
class WT_Repository extends WT_GedcomRecord {
const RECORD_TYPE = 'REPO';
- const SQL_FETCH = "SELECT o_gedcom FROM `##other` WHERE o_id=? AND o_file=?";
const URL_PREFIX = 'repo.php?rid=';
// Fetch the record from the database
diff --git a/library/WT/Source.php b/library/WT/Source.php
index 45dbda4655..9ba5e68764 100644
--- a/library/WT/Source.php
+++ b/library/WT/Source.php
@@ -23,7 +23,6 @@
class WT_Source extends WT_GedcomRecord {
const RECORD_TYPE = 'SOUR';
- const SQL_FETCH = "SELECT s_gedcom FROM `##sources` WHERE s_id=? AND s_file=?";
const URL_PREFIX = 'source.php?sid=';
// Implement source-specific privacy logic