Cleanup - rm unused vars
authorColeman Watts <coleman@civicrm.org>
Mon, 4 Jan 2016 22:56:28 +0000 (17:56 -0500)
committerColeman Watts <coleman@civicrm.org>
Thu, 14 Jan 2016 17:48:08 +0000 (12:48 -0500)
CRM/Case/BAO/Case.php

index 61e223869fcdc884bcb388531d9dffffe8c77646..fdb0a4ab4e1a6fcb5419315ced5b925b18c704da 100644 (file)
@@ -545,20 +545,16 @@ WHERE cc.contact_id = %1 AND civicrm_case_type.name = '{$caseType}'";
   /**
    * @param string $type
    * @param int $userID
-   * @param null $condition
-   * @param int $isDeleted
+   * @param string $condition
    *
    * @return string
    */
-  public static function getCaseActivityQuery($type = 'upcoming', $userID = NULL, $condition = NULL, $isDeleted = 0) {
+  public static function getCaseActivityQuery($type = 'upcoming', $userID = NULL, $condition = NULL) {
     if (!$userID) {
       $session = CRM_Core_Session::singleton();
       $userID = $session->get('userID');
     }
 
-    $actStatus = array_flip(CRM_Core_PseudoConstant::activityStatus('name'));
-    $scheduledStatusId = $actStatus['Scheduled'];
-
     $query = "SELECT
 civicrm_case.id as case_id,
 civicrm_case.subject as case_subject,