Skip to content
Snippets Groups Projects
Commit 27d76b0d authored by Benjamin Melançon's avatar Benjamin Melançon
Browse files

Remove duplicate / old code accidentally kept in a merge

parent f7bce18b
Branches
Tags
No related merge requests found
...@@ -10,7 +10,6 @@ use Drupal\Core\Url; ...@@ -10,7 +10,6 @@ use Drupal\Core\Url;
use Drupal\user\UserInterface; use Drupal\user\UserInterface;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Drupal\Core\Datetime\DateFormatter;
/** /**
* Provides a form for delete a user revision. * Provides a form for delete a user revision.
...@@ -38,13 +37,6 @@ class UserRevisionDeleteForm extends ConfirmFormBase { ...@@ -38,13 +37,6 @@ class UserRevisionDeleteForm extends ConfirmFormBase {
*/ */
protected $userStorage; protected $userStorage;
/**
* The date formatter service.
*
* @var \Drupal\Core\Datetime\DateFormatter
*/
protected $dateFormatter;
/** /**
* Constructs a new UserRevisionDeleteForm. * Constructs a new UserRevisionDeleteForm.
* *
......
...@@ -10,7 +10,6 @@ use Drupal\Core\Url; ...@@ -10,7 +10,6 @@ use Drupal\Core\Url;
use Drupal\user\UserInterface; use Drupal\user\UserInterface;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Drupal\Core\Datetime\DateFormatter;
/** /**
* Provides a form for reverting a user revision. * Provides a form for reverting a user revision.
...@@ -38,13 +37,6 @@ class UserRevisionRevertForm extends ConfirmFormBase { ...@@ -38,13 +37,6 @@ class UserRevisionRevertForm extends ConfirmFormBase {
*/ */
protected $userStorage; protected $userStorage;
/**
* The date formatter service.
*
* @var \Drupal\Core\Datetime\DateFormatter
*/
protected $dateFormatter;
/** /**
* Constructs a new UserRevisionRevertForm. * Constructs a new UserRevisionRevertForm.
* *
......
...@@ -14,15 +14,6 @@ use Drupal\Core\StringTranslation\TranslatableMarkup; ...@@ -14,15 +14,6 @@ use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Url; use Drupal\Core\Url;
use Drupal\user\UserInterface; use Drupal\user\UserInterface;
/**
* Implements hook_entity_type_alter().
*
* Update the user entity type to make it revisionable.
*/
function user_revision_entity_type_alter(array &$entity_types) {
user_revision_add_revision_tables_and_keys($entity_types['user']);
}
/** /**
* Implements hook_entity_base_field_info(). * Implements hook_entity_base_field_info().
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment