From 6a8045a8c728637fa01b2a86ffcfbaa46186e28c Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 3 May 2016 17:22:30 +1200 Subject: [PATCH] CRM-18491 Remove unused function CRM_Core_Report::dateDisplay --- CRM/Report/Form.php | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index 4f34d60dfe..95a8abc75a 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -1977,41 +1977,6 @@ class CRM_Report_Form extends CRM_Core_Form { return NULL; } - /** - * Possibly unused function. - * - * @todo - could not find any instances where this is called - * - * @param bool $relative - * @param string $from - * @param string $to - * - * @return string|NULL - */ - public function dateDisplay($relative, $from, $to) { - list($from, $to) = $this->getFromTo($relative, $from, $to); - - if ($from) { - $clauses[] = CRM_Utils_Date::customFormat($from, NULL, array('m', 'M')); - } - else { - $clauses[] = 'Past'; - } - - if ($to) { - $clauses[] = CRM_Utils_Date::customFormat($to, NULL, array('m', 'M')); - } - else { - $clauses[] = 'Today'; - } - - if (!empty($clauses)) { - return implode(' - ', $clauses); - } - - return NULL; - } - /** * Get values for from and to for date ranges. * -- 2.25.1