From e38d74455ccb294d611a90e5eb2fadfe431e670d Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Tue, 10 Sep 2019 20:01:15 +0800 Subject: [PATCH] Remove unused code --- app/helpers.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/app/helpers.php b/app/helpers.php index b7a3d32a..75b50e7d 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -260,21 +260,6 @@ if (! function_exists('get_db_config')) { } } -if (! function_exists('format_http_date')) { - /** - * Format a UNIX timestamp to string for HTTP headers. - * - * e.g. Wed, 21 Oct 2015 07:28:00 GMT - * - * @param int $timestamp - * @return string - */ - function format_http_date($timestamp): string - { - return Carbon::createFromTimestampUTC($timestamp)->format('D, d M Y H:i:s \G\M\T'); - } -} - if (! function_exists('get_datetime_string')) { /** * Get date time string in "Y-m-d H:i:s" format.