From 0ad5496223f2c2374c523dd3b127fa2f7430b8a3 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 15 May 2013 18:57:02 -0500 Subject: [PATCH] Remove functions that are never called --- CRM/Activity/BAO/Query.php | 5 ----- CRM/Case/BAO/Query.php | 5 ----- CRM/Contribute/BAO/Query.php | 5 ----- CRM/Core/Component.php | 11 ----------- CRM/Grant/BAO/Query.php | 5 ----- CRM/Mailing/BAO/Query.php | 8 +------- CRM/Member/BAO/Query.php | 5 ----- 7 files changed, 1 insertion(+), 43 deletions(-) diff --git a/CRM/Activity/BAO/Query.php b/CRM/Activity/BAO/Query.php index ed3b9b07fc..38278d6b97 100644 --- a/CRM/Activity/BAO/Query.php +++ b/CRM/Activity/BAO/Query.php @@ -555,11 +555,6 @@ class CRM_Activity_BAO_Query { $form->setDefaults(array('activity_test' => 0)); } - static function addShowHide(&$showHide) { - $showHide->addHide('caseActivityForm'); - $showHide->addShow('caseActivityForm_show'); - } - static function defaultReturnProperties($mode, $includeCustomFields = TRUE) { $properties = NULL; if ($mode & CRM_Contact_BAO_Query::MODE_ACTIVITY) { diff --git a/CRM/Case/BAO/Query.php b/CRM/Case/BAO/Query.php index 6fc71b86b7..8e7c5c4146 100644 --- a/CRM/Case/BAO/Query.php +++ b/CRM/Case/BAO/Query.php @@ -738,10 +738,5 @@ case_relation_type.id = case_relationship.relationship_type_id )"; } static function searchAction(&$row, $id) {} - - static function addShowHide(&$showHide) { - $showHide->addHide('caseForm'); - $showHide->addShow('caseForm_show'); - } } diff --git a/CRM/Contribute/BAO/Query.php b/CRM/Contribute/BAO/Query.php index 6f1fe39a4f..082c134546 100644 --- a/CRM/Contribute/BAO/Query.php +++ b/CRM/Contribute/BAO/Query.php @@ -924,11 +924,6 @@ class CRM_Contribute_BAO_Query { $form->setDefaults(array('contribution_test' => 0)); } - static function addShowHide(&$showHide) { - $showHide->addHide('contributeForm'); - $showHide->addShow('contributeForm_show'); - } - static function searchAction(&$row, $id) { } diff --git a/CRM/Core/Component.php b/CRM/Core/Component.php index 2f89e752ad..7dbab550e3 100644 --- a/CRM/Core/Component.php +++ b/CRM/Core/Component.php @@ -279,17 +279,6 @@ class CRM_Core_Component { } } - static function &addShowHide(&$showHide) { - $info = self::_info(); - - foreach ($info as $name => $comp) { - if ($comp->usesSearch()) { - $bqr = $comp->getBAOQueryObject(); - $bqr->addShowHide($showHide); - } - } - } - static function searchAction(&$row, $id) { $info = self::_info(); diff --git a/CRM/Grant/BAO/Query.php b/CRM/Grant/BAO/Query.php index ab5824baac..9011b49693 100644 --- a/CRM/Grant/BAO/Query.php +++ b/CRM/Grant/BAO/Query.php @@ -360,11 +360,6 @@ class CRM_Grant_BAO_Query { $form->assign('validGrant', TRUE); } - static function addShowHide(&$showHide) { - $showHide->addHide('grantForm'); - $showHide->addShow('grantForm_show'); - } - static function searchAction(&$row, $id) {} static function tableNames(&$tables) {} diff --git a/CRM/Mailing/BAO/Query.php b/CRM/Mailing/BAO/Query.php index dc639f2f12..f80b61d4fe 100644 --- a/CRM/Mailing/BAO/Query.php +++ b/CRM/Mailing/BAO/Query.php @@ -399,13 +399,7 @@ class CRM_Mailing_BAO_Query { $form->assign('validCiviMailing', TRUE); } - static function addShowHide(&$showHide) { - $showHide->addHide('MailingForm'); - $showHide->addShow('MailingForm_show'); - } - - static function searchAction(&$row, $id) { - } + static function searchAction(&$row, $id) {} static function tableNames(&$tables) { } diff --git a/CRM/Member/BAO/Query.php b/CRM/Member/BAO/Query.php index 91acb886a1..4636068d38 100644 --- a/CRM/Member/BAO/Query.php +++ b/CRM/Member/BAO/Query.php @@ -455,11 +455,6 @@ class CRM_Member_BAO_Query { static function searchAction(&$row, $id) {} - static function addShowHide(&$showHide) { - $showHide->addHide('memberForm'); - $showHide->addShow('memberForm_show'); - } - static function tableNames(&$tables) { //add membership table if (CRM_Utils_Array::value('civicrm_membership_log', $tables) || CRM_Utils_Array::value('civicrm_membership_status', $tables) || CRM_Utils_Array::value('civicrm_membership_type', $tables)) { -- 2.25.1