From: Cyperghost Date: Wed, 30 Oct 2024 07:49:01 +0000 (+0100) Subject: Remove the unused functions `CLIUtil::formatTime()` and `CLIUtil::formatDate()`. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d886e31cb75a07ae02804e94a5ce84a95fb8566a;p=GitHub%2FWoltLab%2FWCF.git Remove the unused functions `CLIUtil::formatTime()` and `CLIUtil::formatDate()`. --- diff --git a/wcfsetup/install/files/lib/util/CLIUtil.class.php b/wcfsetup/install/files/lib/util/CLIUtil.class.php index 66281bdb92..1ec5ab52f8 100644 --- a/wcfsetup/install/files/lib/util/CLIUtil.class.php +++ b/wcfsetup/install/files/lib/util/CLIUtil.class.php @@ -82,36 +82,6 @@ final class CLIUtil return $result; } - /** - * Formats time. - * - * @param int $timestamp - * @return string - */ - public static function formatTime($timestamp) - { - $dateTimeObject = DateUtil::getDateTimeByTimestamp($timestamp); - $date = DateUtil::format($dateTimeObject, DateUtil::DATE_FORMAT); - $time = DateUtil::format($dateTimeObject, DateUtil::TIME_FORMAT); - - return \str_replace( - '%time%', - $time, - \str_replace('%date%', $date, CLIWCF::getLanguage()->get('wcf.date.dateTimeFormat')) - ); - } - - /** - * Formats dates. - * - * @param int $timestamp - * @return string - */ - public static function formatDate($timestamp) - { - return DateUtil::format(DateUtil::getDateTimeByTimestamp($timestamp), DateUtil::DATE_FORMAT); - } - /** * Forbid creation of CLIUtil objects. */