From d33f375327dfe3a7804cee7f77a529211cf93de3 Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Thu, 6 Feb 2020 17:13:45 +0000 Subject: [PATCH] Issue #3106272 by pratik_kamble, Hardik_Patel_12, longwave, naresh_bavaskar: Remove unused variable from DateFormatFormBase --- core/modules/system/src/Form/DateFormatFormBase.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/modules/system/src/Form/DateFormatFormBase.php b/core/modules/system/src/Form/DateFormatFormBase.php index 8e6cd82c9442..72a4d2e79ae4 100644 --- a/core/modules/system/src/Form/DateFormatFormBase.php +++ b/core/modules/system/src/Form/DateFormatFormBase.php @@ -7,7 +7,6 @@ use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Language\LanguageInterface; use Symfony\Component\DependencyInjection\ContainerInterface; -use Drupal\Core\Datetime\DrupalDateTime; use Drupal\Core\Entity\EntityForm; /** @@ -38,8 +37,6 @@ abstract class DateFormatFormBase extends EntityForm { * The date format storage. */ public function __construct(DateFormatterInterface $date_formatter, ConfigEntityStorageInterface $date_format_storage) { - $date = new DrupalDateTime(); - $this->dateFormatter = $date_formatter; $this->dateFormatStorage = $date_format_storage; } -- GitLab