From 769d6112490ad3481d1d19d14b6c860efea2686b Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Thu, 31 Jul 2014 13:34:41 +0100
Subject: [PATCH] Issue #2239241 by Berdir, mr.baileys | tstoeckler: DateItem
 is completely broken, remove it.

---
 .../Field/Plugin/Field/FieldType/DateItem.php | 51 -------------------
 1 file changed, 51 deletions(-)
 delete mode 100644 core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DateItem.php

diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DateItem.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DateItem.php
deleted file mode 100644
index c93d494c1dab..000000000000
--- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DateItem.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-
-/**
- * @file
- * Contains \Drupal\Core\Entity\Plugin\Field\FieldType\DateItem.
- */
-
-namespace Drupal\Core\Field\Plugin\Field\FieldType;
-
-use Drupal\Core\Field\FieldItemBase;
-use Drupal\Core\Field\FieldStorageDefinitionInterface;
-use Drupal\Core\TypedData\DataDefinition;
-
-/**
- * Defines the 'date' entity field type.
- *
- * @FieldType(
- *   id = "date",
- *   label = @Translation("Date"),
- *   description = @Translation("An entity field containing a date value."),
- *   no_ui = TRUE
- * )
- */
-class DateItem extends FieldItemBase {
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition) {
-    $properties['value'] = DataDefinition::create('date')
-      ->setLabel(t('Date value'));
-
-    return $properties;
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function schema(FieldStorageDefinitionInterface $field_definition) {
-    return array(
-      'columns' => array(
-        'value' => array(
-          'type' => 'varchar',
-          'length' => 20,
-          'not null' => FALSE,
-        ),
-      ),
-    );
-  }
-
-}
-- 
GitLab