From b1be45a0097eaa471541667fb1e6c0816a7f5b61 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 31 Aug 2013 18:23:42 -0400 Subject: [PATCH] Cleanup - remove unused search code --- CRM/Contact/BAO/Query.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index ce4ce3b1bd..7beeddfe9c 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -1546,7 +1546,6 @@ class CRM_Contact_BAO_Query { return; case 'group': - list($name, $op, $value, $grouping, $wildcard) = $values; $this->group($values); return; case 'group_type': @@ -1740,8 +1739,6 @@ class CRM_Contact_BAO_Query { $this->_where[0] = array(); $this->_qill[0] = array(); - $config = CRM_Core_Config::singleton(); - $this->includeContactIds(); if (!empty($this->_params)) { foreach (array_keys($this->_params) as $id) { @@ -4295,12 +4292,6 @@ civicrm_relationship.start_date > {$today} if ($field) { switch ($field) { - case 'sort_name': - case 'id': - case 'contact_a.sort_name': - case 'contact_a.id': - break; - case 'city': case 'postal_code': $this->_whereTables["civicrm_address"] = 1; @@ -4328,7 +4319,7 @@ civicrm_relationship.start_date > {$today} } } - // note : this modifies _fromClause and _simpleFromClaus + // note : this modifies _fromClause and _simpleFromClause $this->includePseudoFieldsJoin($sort); list($select, $from, $where, $having) = $this->query($count, $sortByChar, $groupContacts); -- 2.25.1