From: Coleman Watts Date: Thu, 20 Jan 2022 20:04:02 +0000 (-0500) Subject: Remove useless function X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=186e835db0d5a2df20a3b84c1ae10d3679669c20;p=civicrm-core.git Remove useless function --- diff --git a/CRM/Report/Form/Contribute/Repeat.php b/CRM/Report/Form/Contribute/Repeat.php index 812bb5c1e0..79d0e8fc10 100644 --- a/CRM/Report/Form/Contribute/Repeat.php +++ b/CRM/Report/Form/Contribute/Repeat.php @@ -602,7 +602,7 @@ LEFT JOIN $this->tempTableRepeat2 {$this->_aliases['civicrm_contribution']}2 foreach ($checkDate as $date_range => $range_data) { foreach ($range_data as $key => $value) { - if (CRM_Utils_Date::isDate($value)) { + if (!CRM_Utils_System::isNull($value)) { $errorCount[$date_range][$key]['valid'] = 'true'; $errorCount[$date_range][$key]['is_empty'] = 'false'; } diff --git a/CRM/Utils/Date.php b/CRM/Utils/Date.php index 318dfa996c..12b2e64d51 100644 --- a/CRM/Utils/Date.php +++ b/CRM/Utils/Date.php @@ -714,18 +714,6 @@ class CRM_Utils_Date { return FALSE; } - /** - * @param $date - * - * @return bool - */ - public static function isDate(&$date) { - if (CRM_Utils_System::isNull($date)) { - return FALSE; - } - return TRUE; - } - /** * Translate a TTL to a concrete expiration time. *