From 186e835db0d5a2df20a3b84c1ae10d3679669c20 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 20 Jan 2022 15:04:02 -0500 Subject: [PATCH] Remove useless function --- CRM/Report/Form/Contribute/Repeat.php | 2 +- CRM/Utils/Date.php | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) 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. * -- 2.25.1