diff --git a/core/modules/system/src/Form/DateFormatFormBase.php b/core/modules/system/src/Form/DateFormatFormBase.php index 8e6cd82c94427906771147338d884bf536e25174..72a4d2e79ae4462c082256a74a8e73cb8297670c 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; }