Remove the unused functions `CLIUtil::formatTime()` and `CLIUtil::formatDate()`.
authorCyperghost <olaf_schmitz_1@t-online.de>
Wed, 30 Oct 2024 07:49:01 +0000 (08:49 +0100)
committerCyperghost <olaf_schmitz_1@t-online.de>
Wed, 30 Oct 2024 07:49:01 +0000 (08:49 +0100)
wcfsetup/install/files/lib/util/CLIUtil.class.php

index 66281bdb92304ab6c2e8920ba752cea933c99473..1ec5ab52f86a5955570ecea775c0454992b22aa8 100644 (file)
@@ -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.
      */