CRM-15926 - CRM_Contact_Page_AJAX::getContactList - Remove old, unused helper
[civicrm-core.git] / CRM / Core / Page / AJAX.php
index 0b5f72fae6dd279ce08c77e6f1a1aec2e6aeb421..315b8fba3d4f8bcb4bbad31c27054dfa1ce93d33 100644 (file)
@@ -208,26 +208,5 @@ class CRM_Core_Page_AJAX {
     header("Cache-Control: max-age=$year, public");
   }
 
-  /**
-   * Send autocomplete results to the client. Input can be a simple or nested array.
-   * @param array $results - If nested array, also provide:
-   * @param string $val - array key to use as the value
-   * @param string $key - array key to use as the key
-   * @deprecated
-   */
-  static function autocompleteResults($results, $val='label', $key='id') {
-    $output = array();
-    if (is_array($results)) {
-      foreach ($results as $k => $v) {
-        if (is_array($v)) {
-          echo $v[$val] . '|' . $v[$key] . "\n";
-        }
-        else {
-          echo "$v|$k\n";
-        }
-      }
-    }
-    CRM_Utils_System::civiExit();
-  }
 }