summaryrefslogtreecommitdiff
path: root/includes/functions
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-05-06 17:54:33 +0000
committerfisharebest <fisharebest@gmail.com>2010-05-06 17:54:33 +0000
commitffb19e846ca2be7a1ea34185972fcc11f8f4de6a (patch)
tree1c6d5e0c49f35f8307f90a727d13ac5302d2ac24 /includes/functions
parent2f9f2bd860c29ee24109b774c962a28120458a5b (diff)
downloadwebtrees-ffb19e846ca2be7a1ea34185972fcc11f8f4de6a.tar.gz
webtrees-ffb19e846ca2be7a1ea34185972fcc11f8f4de6a.tar.bz2
webtrees-ffb19e846ca2be7a1ea34185972fcc11f8f4de6a.zip
Remove old/unused function
Diffstat (limited to 'includes/functions')
-rw-r--r--includes/functions/functions_db.php23
1 files changed, 0 insertions, 23 deletions
diff --git a/includes/functions/functions_db.php b/includes/functions/functions_db.php
index a5477e666a..557d4eb9e9 100644
--- a/includes/functions/functions_db.php
+++ b/includes/functions/functions_db.php
@@ -537,29 +537,6 @@ function fetch_child_ids($parent_id, $ged_id) {
}
////////////////////////////////////////////////////////////////////////////////
-// Count the number of records of each type in the database. Return an array
-// of 'type'=>count for each type where records exist.
-////////////////////////////////////////////////////////////////////////////////
-function count_all_records($ged_id) {
- global $TBLPREFIX;
-
- return
- WT_DB::prepare(
- "SELECT 'INDI' AS type, COUNT(*) AS num FROM {$TBLPREFIX}individuals WHERE i_file=?".
- " UNION ALL ".
- "SELECT 'FAM' AS type, COUNT(*) AS num FROM {$TBLPREFIX}families WHERE f_file=?".
- " UNION ALL ".
- "SELECT 'SOUR' AS type, COUNT(*) AS num FROM {$TBLPREFIX}sources WHERE s_file=?".
- " UNION ALL ".
- "SELECT 'OBJE' AS type, COUNT(*) AS num FROM {$TBLPREFIX}media WHERE m_gedfile=?".
- " UNION ALL ".
- "SELECT o_type AS type, COUNT(*) as num FROM {$TBLPREFIX}other WHERE o_file=? GROUP BY type"
- )
- ->execute(array($ged_id, $ged_id, $ged_id, $ged_id, $ged_id))
- ->fetchAssoc();
-}
-
-////////////////////////////////////////////////////////////////////////////////
// Count the number of records linked to a given record
////////////////////////////////////////////////////////////////////////////////
function count_linked_indi($xref, $link, $ged_id) {