diff --git a/core/modules/user/user.module b/core/modules/user/user.module
index 82584ff679dbcf4a5ea9132b983f595e4e0ed2b9..38f0ba06ba753d5ce532f4425f9a0cfb59d41f0a 100644
--- a/core/modules/user/user.module
+++ b/core/modules/user/user.module
@@ -3,7 +3,6 @@
 use Drupal\Component\Utility\Crypt;
 use Drupal\Component\Utility\String;
 use Drupal\Component\Utility\Unicode;
-use Drupal\Core\Entity\EntityInterface;
 use Drupal\Core\Form\FormStateInterface;
 use Drupal\Core\Routing\RouteMatchInterface;
 use Drupal\Core\Session\AccountInterface;
@@ -11,16 +10,11 @@
 use \Drupal\Core\Entity\Display\EntityViewDisplayInterface;
 use Drupal\Core\Url;
 use Drupal\Core\Site\Settings;
-use Drupal\file\Entity\File;
 use Drupal\user\Entity\Role;
 use Drupal\user\Entity\User;
 use Drupal\user\UserInterface;
 use Drupal\user\RoleInterface;
-use Drupal\Core\Template\Attribute;
 use Drupal\Core\Field\BaseFieldDefinition;
-use Symfony\Component\HttpFoundation\RedirectResponse;
-use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
-use Drupal\menu_link\Entity\MenuLink;
 
 /**
  * @file