Remove functions that are never called
authorColeman Watts <coleman@civicrm.org>
Wed, 15 May 2013 23:57:02 +0000 (18:57 -0500)
committerColeman Watts <coleman@civicrm.org>
Sat, 4 Jan 2014 01:18:51 +0000 (17:18 -0800)
CRM/Activity/BAO/Query.php
CRM/Case/BAO/Query.php
CRM/Contribute/BAO/Query.php
CRM/Core/Component.php
CRM/Grant/BAO/Query.php
CRM/Mailing/BAO/Query.php
CRM/Member/BAO/Query.php

index ed3b9b07fc4f715a0fa455cb12e5583246a32eb9..38278d6b979f532d66fbf6e5b68a22ccc103b368 100644 (file)
@@ -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) {
index 6fc71b86b7115a6a06de3d1e6af29351ac5bcc7e..8e7c5c4146f6fe1cebe8ff352f0dc000f354b785 100644 (file)
@@ -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');
-  }
 }
 
index 6f1fe39a4f2751c5976496aa027809d706fc7a8d..082c134546bfbd74eb9d2912eda76864edf8acc9 100644 (file)
@@ -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) {
   }
 
index 2f89e752adce023002438edb483939b42d1cd858..7dbab550e33bc28aa9f7549f42320ccb8fce5a45 100644 (file)
@@ -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();
 
index ab5824baacf1d05282c205efb8c9f0f1b085afa8..9011b49693a880b4a94ff0ea832e85f90c8c86bf 100644 (file)
@@ -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) {}
index dc639f2f12706f3d187003d7c8d1e104f7c6967c..f80b61d4fe1b4fe28a6d4cacb74058ed000c0c7d 100644 (file)
@@ -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) {
   }
index 91acb886a106012a404e77e7f14a216460466624..4636068d388633f324f54ef5a96ee76e2403f1eb 100644 (file)
@@ -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)) {