diff --git a/phpBB/includes/datetime.php b/phpBB/includes/datetime.php index ec2cb3f471..0cb4c79a10 100644 --- a/phpBB/includes/datetime.php +++ b/phpBB/includes/datetime.php @@ -44,24 +44,6 @@ class phpbb_datetime extends DateTime parent::__construct($time, $timezone); } - /** - * Returns a UNIX timestamp representation of the date time. - * - * @internal This method is for backwards compatibility with 5.2, hence why it doesn't use our method naming standards. - * @return int UNIX timestamp - */ - public function getTimestamp() - { - static $compat; - - if (!isset($compat)) - { - $compat = !method_exists('DateTime', 'getTimestamp'); - } - - return !$compat ? parent::getTimestamp() : (int) parent::format('U'); - } - /** * Formats the current date time into the specified format *