summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2015-10-08 19:46:26 (GMT)
committerNathaniel Catchpole2015-10-08 19:46:26 (GMT)
commit8b65164c5a75d746eb41fcdd6b4e1d9156a786b4 (patch)
tree47e00d8484f680a2fa8cd745d76e0cfc0085ed40
parente3908d2140601d02f85e68338078df20e4e3db57 (diff)
Issue #2533800 by alexpott: Remove all unused use statements from core
-rw-r--r--core/includes/batch.inc1
-rw-r--r--core/includes/bootstrap.inc8
-rw-r--r--core/includes/common.inc17
-rw-r--r--core/includes/entity.inc2
-rw-r--r--core/includes/file.inc2
-rw-r--r--core/includes/form.inc5
-rw-r--r--core/includes/install.core.inc1
-rw-r--r--core/includes/module.inc1
-rw-r--r--core/includes/pager.inc1
-rw-r--r--core/includes/schema.inc2
-rw-r--r--core/includes/theme.inc1
-rw-r--r--core/includes/update.inc1
-rw-r--r--core/includes/utility.inc1
-rw-r--r--core/lib/Drupal/Component/Gettext/PoMemoryWriter.php4
-rw-r--r--core/lib/Drupal/Component/Gettext/PoMetadataInterface.php2
-rw-r--r--core/lib/Drupal/Component/Gettext/PoReaderInterface.php2
-rw-r--r--core/lib/Drupal/Component/Gettext/PoStreamReader.php3
-rw-r--r--core/lib/Drupal/Component/Gettext/PoStreamWriter.php6
-rw-r--r--core/lib/Drupal/Component/Gettext/PoWriterInterface.php3
-rw-r--r--core/lib/Drupal/Component/Plugin/Exception/InvalidDecoratedMethod.php1
-rw-r--r--core/lib/Drupal/Core/Action/ConfigurableActionBase.php1
-rw-r--r--core/lib/Drupal/Core/Ajax/AddCssCommand.php2
-rw-r--r--core/lib/Drupal/Core/Ajax/AfterCommand.php2
-rw-r--r--core/lib/Drupal/Core/Ajax/AjaxResponse.php5
-rw-r--r--core/lib/Drupal/Core/Ajax/AlertCommand.php2
-rw-r--r--core/lib/Drupal/Core/Ajax/AppendCommand.php2
-rw-r--r--core/lib/Drupal/Core/Ajax/BeforeCommand.php2
-rw-r--r--core/lib/Drupal/Core/Ajax/ChangedCommand.php2
-rw-r--r--core/lib/Drupal/Core/Ajax/CloseModalDialogCommand.php2
-rw-r--r--core/lib/Drupal/Core/Ajax/CssCommand.php2
-rw-r--r--core/lib/Drupal/Core/Ajax/DataCommand.php2
-rw-r--r--core/lib/Drupal/Core/Ajax/HtmlCommand.php2
-rw-r--r--core/lib/Drupal/Core/Ajax/InsertCommand.php2
-rw-r--r--core/lib/Drupal/Core/Ajax/InvokeCommand.php2
-rw-r--r--core/lib/Drupal/Core/Ajax/OpenDialogCommand.php2
-rw-r--r--core/lib/Drupal/Core/Ajax/OpenModalDialogCommand.php2
-rw-r--r--core/lib/Drupal/Core/Ajax/PrependCommand.php2
-rw-r--r--core/lib/Drupal/Core/Ajax/RedirectCommand.php2
-rw-r--r--core/lib/Drupal/Core/Ajax/RemoveCommand.php2
-rw-r--r--core/lib/Drupal/Core/Ajax/ReplaceCommand.php2
-rw-r--r--core/lib/Drupal/Core/Ajax/RestripeCommand.php2
-rw-r--r--core/lib/Drupal/Core/Ajax/SetDialogTitleCommand.php2
-rw-r--r--core/lib/Drupal/Core/Ajax/SettingsCommand.php2
-rw-r--r--core/lib/Drupal/Core/Asset/AssetDumper.php1
-rw-r--r--core/lib/Drupal/Core/Asset/CssCollectionGrouper.php2
-rw-r--r--core/lib/Drupal/Core/Asset/CssOptimizer.php1
-rw-r--r--core/lib/Drupal/Core/Asset/JsCollectionGrouper.php2
-rw-r--r--core/lib/Drupal/Core/Asset/JsOptimizer.php1
-rw-r--r--core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php1
-rw-r--r--core/lib/Drupal/Core/Cache/CacheFactory.php1
-rw-r--r--core/lib/Drupal/Core/Condition/ConditionPluginBase.php2
-rw-r--r--core/lib/Drupal/Core/Config/CachedStorage.php1
-rw-r--r--core/lib/Drupal/Core/Config/ConfigInstaller.php1
-rw-r--r--core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php2
-rw-r--r--core/lib/Drupal/Core/Config/Entity/ConfigEntityStorageInterface.php1
-rw-r--r--core/lib/Drupal/Core/Config/TypedConfigManager.php1
-rw-r--r--core/lib/Drupal/Core/Database/Driver/mysql/Schema.php1
-rw-r--r--core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php3
-rw-r--r--core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php2
-rw-r--r--core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php2
-rw-r--r--core/lib/Drupal/Core/Database/Schema.php1
-rw-r--r--core/lib/Drupal/Core/Datetime/DateFormatInterface.php1
-rw-r--r--core/lib/Drupal/Core/Datetime/DateFormatter.php1
-rw-r--r--core/lib/Drupal/Core/Datetime/DateHelper.php2
-rw-r--r--core/lib/Drupal/Core/DependencyInjection/Compiler/ProxyServicesPass.php2
-rw-r--r--core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterStreamWrappersPass.php2
-rw-r--r--core/lib/Drupal/Core/DrupalKernel.php2
-rw-r--r--core/lib/Drupal/Core/Entity/Controller/EntityListController.php1
-rw-r--r--core/lib/Drupal/Core/Entity/Entity.php1
-rw-r--r--core/lib/Drupal/Core/Entity/EntityConfirmFormBase.php1
-rw-r--r--core/lib/Drupal/Core/Entity/EntityListBuilder.php1
-rw-r--r--core/lib/Drupal/Core/Entity/EntityManager.php1
-rw-r--r--core/lib/Drupal/Core/Entity/Query/Sql/QueryFactory.php1
-rw-r--r--core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php2
-rw-r--r--core/lib/Drupal/Core/EventSubscriber/AnonymousUserResponseSubscriber.php1
-rw-r--r--core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php1
-rw-r--r--core/lib/Drupal/Core/EventSubscriber/FinishResponseSubscriber.php4
-rw-r--r--core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php1
-rw-r--r--core/lib/Drupal/Core/EventSubscriber/RouterRebuildSubscriber.php4
-rw-r--r--core/lib/Drupal/Core/Executable/ExecutablePluginBase.php1
-rw-r--r--core/lib/Drupal/Core/Extension/ModuleHandler.php1
-rw-r--r--core/lib/Drupal/Core/Extension/module.api.php1
-rw-r--r--core/lib/Drupal/Core/Field/FieldConfigBase.php1
-rw-r--r--core/lib/Drupal/Core/Field/FieldFilteredMarkup.php1
-rw-r--r--core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceEntityFormatter.php1
-rw-r--r--core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceIdFormatter.php1
-rw-r--r--core/lib/Drupal/Core/Field/Plugin/Field/FieldType/MapItem.php1
-rw-r--r--core/lib/Drupal/Core/Form/ConfigFormBase.php1
-rw-r--r--core/lib/Drupal/Core/Form/FormCache.php1
-rw-r--r--core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php1
-rw-r--r--core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php1
-rw-r--r--core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseExpirableFactory.php1
-rw-r--r--core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseFactory.php1
-rw-r--r--core/lib/Drupal/Core/KeyValueStore/KeyValueExpirableFactory.php2
-rw-r--r--core/lib/Drupal/Core/Language/LanguageManagerInterface.php1
-rw-r--r--core/lib/Drupal/Core/Menu/MenuLinkTree.php2
-rw-r--r--core/lib/Drupal/Core/Menu/Plugin/Block/LocalActionsBlock.php1
-rw-r--r--core/lib/Drupal/Core/ParamConverter/ParamConverterManager.php2
-rw-r--r--core/lib/Drupal/Core/Path/AliasWhitelist.php1
-rw-r--r--core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php2
-rw-r--r--core/lib/Drupal/Core/Render/Element/Link.php1
-rw-r--r--core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php2
-rw-r--r--core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php1
-rw-r--r--core/lib/Drupal/Core/Render/MainContent/ModalRenderer.php1
-rw-r--r--core/lib/Drupal/Core/RouteProcessor/RouteProcessorCurrent.php1
-rw-r--r--core/lib/Drupal/Core/Routing/LinkGeneratorTrait.php1
-rw-r--r--core/lib/Drupal/Core/Routing/RouteProvider.php2
-rw-r--r--core/lib/Drupal/Core/Routing/RouteProviderInterface.php1
-rw-r--r--core/lib/Drupal/Core/Routing/RouteSubscriberBase.php1
-rw-r--r--core/lib/Drupal/Core/Routing/UrlGenerator.php1
-rw-r--r--core/lib/Drupal/Core/Session/PermissionsHashGenerator.php1
-rw-r--r--core/lib/Drupal/Core/StringTranslation/TranslationManager.php1
-rw-r--r--core/lib/Drupal/Core/Template/TwigEnvironment.php1
-rw-r--r--core/lib/Drupal/Core/Template/TwigNodeTrans.php3
-rw-r--r--core/lib/Drupal/Core/Test/TestRunnerKernel.php1
-rw-r--r--core/lib/Drupal/Core/TypedData/Plugin/DataType/BinaryData.php1
-rw-r--r--core/lib/Drupal/Core/TypedData/Plugin/DataType/Uri.php2
-rw-r--r--core/lib/Drupal/Core/Utility/LinkGenerator.php1
-rw-r--r--core/lib/Drupal/Core/Utility/Token.php1
-rw-r--r--core/lib/Drupal/Core/Utility/UnroutedUrlAssembler.php1
-rw-r--r--core/modules/action/action.views_execution.inc2
-rw-r--r--core/modules/aggregator/aggregator.install1
-rw-r--r--core/modules/aggregator/src/Controller/AggregatorController.php2
-rw-r--r--core/modules/aggregator/src/Entity/Feed.php1
-rw-r--r--core/modules/aggregator/src/FeedStorageInterface.php1
-rw-r--r--core/modules/aggregator/src/ItemStorageInterface.php1
-rw-r--r--core/modules/aggregator/src/ItemStorageSchema.php1
-rw-r--r--core/modules/aggregator/src/Plugin/Field/FieldFormatter/AggregatorXSSFormatter.php2
-rw-r--r--core/modules/aggregator/src/Plugin/aggregator/processor/DefaultProcessor.php1
-rw-r--r--core/modules/aggregator/src/Tests/AddFeedTest.php1
-rw-r--r--core/modules/aggregator/src/Tests/FeedParserTest.php1
-rw-r--r--core/modules/block/src/Controller/BlockAddController.php1
-rw-r--r--core/modules/block/src/Controller/BlockController.php2
-rw-r--r--core/modules/block/src/EventSubscriber/BlockPageDisplayVariantSubscriber.php1
-rw-r--r--core/modules/block/src/Tests/BlockViewBuilderTest.php2
-rw-r--r--core/modules/block/tests/modules/block_test/src/Plugin/Block/TestCacheBlock.php1
-rw-r--r--core/modules/block_content/block_content.pages.inc3
-rw-r--r--core/modules/block_content/src/Controller/BlockContentController.php1
-rw-r--r--core/modules/block_content/src/Entity/BlockContentType.php2
-rw-r--r--core/modules/block_content/src/Form/BlockContentTypeDeleteForm.php1
-rw-r--r--core/modules/block_content/src/Plugin/Block/BlockContentBlock.php1
-rw-r--r--core/modules/block_content/src/Tests/BlockContentCacheTagsTest.php1
-rw-r--r--core/modules/block_content/src/Tests/BlockContentTestBase.php1
-rw-r--r--core/modules/block_content/src/Tests/BlockContentTypeTest.php1
-rw-r--r--core/modules/book/book.module1
-rw-r--r--core/modules/book/src/BookExport.php2
-rw-r--r--core/modules/book/src/Controller/BookController.php1
-rw-r--r--core/modules/book/src/Form/BookRemoveForm.php1
-rw-r--r--core/modules/ckeditor/src/Plugin/CKEditorPlugin/StylesCombo.php1
-rw-r--r--core/modules/ckeditor/src/Plugin/Editor/CKEditor.php1
-rw-r--r--core/modules/ckeditor/src/Tests/CKEditorPluginManagerTest.php1
-rw-r--r--core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaButton.php1
-rw-r--r--core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextual.php1
-rw-r--r--core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextualAndButton.php1
-rw-r--r--core/modules/comment/comment.api.php1
-rw-r--r--core/modules/comment/comment.module7
-rw-r--r--core/modules/comment/src/CommentForm.php2
-rw-r--r--core/modules/comment/src/CommentManager.php1
-rw-r--r--core/modules/comment/src/CommentManagerInterface.php2
-rw-r--r--core/modules/comment/src/CommentTypeForm.php1
-rw-r--r--core/modules/comment/src/CommentViewBuilder.php1
-rw-r--r--core/modules/comment/src/Entity/CommentType.php1
-rw-r--r--core/modules/comment/src/Form/CommentTypeDeleteForm.php1
-rw-r--r--core/modules/comment/src/Plugin/Field/FieldFormatter/CommentDefaultFormatter.php4
-rw-r--r--core/modules/comment/src/Plugin/views/wizard/Comment.php1
-rw-r--r--core/modules/comment/src/Tests/CommentDefaultFormatterCacheTagsTest.php1
-rw-r--r--core/modules/comment/src/Tests/CommentTokenReplaceTest.php1
-rw-r--r--core/modules/comment/tests/modules/comment_empty_title_test/comment_empty_title_test.module2
-rw-r--r--core/modules/comment/tests/src/Unit/Entity/CommentLockTest.php1
-rw-r--r--core/modules/config/src/ConfigSubscriber.php1
-rw-r--r--core/modules/config/src/Form/ConfigSync.php2
-rw-r--r--core/modules/config/src/Tests/ConfigCRUDTest.php1
-rw-r--r--core/modules/config/src/Tests/ConfigEntityStatusUITest.php1
-rw-r--r--core/modules/config/src/Tests/ConfigEntityUnitTest.php1
-rw-r--r--core/modules/config/src/Tests/ConfigImporterMissingContentTest.php2
-rw-r--r--core/modules/config/src/Tests/ConfigInstallTest.php1
-rw-r--r--core/modules/config/src/Tests/DefaultConfigTest.php1
-rw-r--r--core/modules/config/src/Tests/SchemaConfigListenerTest.php1
-rw-r--r--core/modules/config/src/Tests/SchemaConfigListenerWebTest.php2
-rw-r--r--core/modules/config/src/Tests/Storage/CachedStorageTest.php1
-rw-r--r--core/modules/config/tests/config_test/config_test.module1
-rw-r--r--core/modules/config/tests/config_test/src/ConfigTestController.php1
-rw-r--r--core/modules/config_translation/config_translation.module2
-rw-r--r--core/modules/config_translation/src/ConfigEntityMapper.php1
-rw-r--r--core/modules/config_translation/src/ConfigMapperInterface.php1
-rw-r--r--core/modules/config_translation/src/ConfigNamesMapper.php1
-rw-r--r--core/modules/config_translation/src/Form/ConfigTranslationDeleteForm.php1
-rw-r--r--core/modules/config_translation/src/Form/ConfigTranslationFormBase.php1
-rw-r--r--core/modules/config_translation/src/Plugin/Derivative/ConfigTranslationContextualLinks.php1
-rw-r--r--core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php1
-rw-r--r--core/modules/config_translation/tests/src/Unit/ConfigMapperManagerTest.php1
-rw-r--r--core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php1
-rw-r--r--core/modules/contact/src/ContactFormEditForm.php1
-rw-r--r--core/modules/contact/src/ContactFormListBuilder.php2
-rw-r--r--core/modules/contact/src/MessageForm.php2
-rw-r--r--core/modules/contact/src/Plugin/views/field/ContactLink.php1
-rw-r--r--core/modules/contact/src/Tests/MessageEntityTest.php1
-rw-r--r--core/modules/content_translation/content_translation.install3
-rw-r--r--core/modules/content_translation/src/ContentTranslationManager.php2
-rw-r--r--core/modules/content_translation/src/ContentTranslationManagerInterface.php1
-rw-r--r--core/modules/content_translation/src/FieldTranslationSynchronizer.php1
-rw-r--r--core/modules/content_translation/src/Plugin/Derivative/ContentTranslationContextualLinks.php1
-rw-r--r--core/modules/content_translation/src/Routing/ContentTranslationRouteSubscriber.php1
-rw-r--r--core/modules/content_translation/src/Tests/Views/TranslationLinkTest.php1
-rw-r--r--core/modules/contextual/src/ContextualController.php1
-rw-r--r--core/modules/datetime/datetime.module3
-rw-r--r--core/modules/datetime/src/Tests/Views/FilterDateTimeTest.php1
-rw-r--r--core/modules/dblog/src/Plugin/views/field/DblogOperations.php2
-rw-r--r--core/modules/dynamic_page_cache/src/Tests/DynamicPageCacheIntegrationTest.php1
-rw-r--r--core/modules/dynamic_page_cache/tests/dynamic_page_cache_test/src/DynamicPageCacheTestController.php1
-rw-r--r--core/modules/editor/src/EditorController.php4
-rw-r--r--core/modules/editor/src/Plugin/EditorBase.php1
-rw-r--r--core/modules/editor/src/Tests/EditorImageDialogTest.php8
-rw-r--r--core/modules/editor/src/Tests/EditorManagerTest.php1
-rw-r--r--core/modules/editor/src/Tests/QuickEditIntegrationTest.php2
-rw-r--r--core/modules/field/field.api.php2
-rw-r--r--core/modules/field/src/Entity/FieldConfig.php1
-rw-r--r--core/modules/field/src/Plugin/migrate/source/d7/ViewMode.php1
-rw-r--r--core/modules/field/src/Tests/Boolean/BooleanFormatterSettingsTest.php2
-rw-r--r--core/modules/field/src/Tests/EntityReference/EntityReferenceIntegrationTest.php1
-rw-r--r--core/modules/field/src/Tests/FieldAttachOtherTest.php1
-rw-r--r--core/modules/field/src/Tests/Migrate/d6/MigrateFieldFormatterSettingsTest.php1
-rw-r--r--core/modules/field/tests/modules/field_test/field_test.module1
-rw-r--r--core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/HiddenTestItem.php3
-rw-r--r--core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php1
-rw-r--r--core/modules/field/tests/src/Unit/FieldStorageConfigEntityUnitTest.php1
-rw-r--r--core/modules/field_ui/src/Controller/FieldConfigListController.php1
-rw-r--r--core/modules/field_ui/src/Plugin/Derivative/FieldUiLocalTask.php1
-rw-r--r--core/modules/file/file.field.inc1
-rw-r--r--core/modules/file/file.module1
-rw-r--r--core/modules/file/src/FileInterface.php1
-rw-r--r--core/modules/file/src/FileUsage/DatabaseFileUsageBackend.php1
-rw-r--r--core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php1
-rw-r--r--core/modules/file/src/Plugin/views/field/File.php1
-rw-r--r--core/modules/file/src/Tests/DownloadTest.php2
-rw-r--r--core/modules/file/src/Tests/FileFieldRSSContentTest.php1
-rw-r--r--core/modules/file/src/Tests/SaveTest.php3
-rw-r--r--core/modules/filter/filter.module1
-rw-r--r--core/modules/filter/src/Element/ProcessedText.php2
-rw-r--r--core/modules/filter/src/FilterFormatFormBase.php1
-rw-r--r--core/modules/filter/src/Tests/FilterAPITest.php1
-rw-r--r--core/modules/filter/src/Tests/FilterUnitTest.php1
-rw-r--r--core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestCacheMerge.php1
-rw-r--r--core/modules/forum/forum.module1
-rw-r--r--core/modules/forum/src/Form/Overview.php2
-rw-r--r--core/modules/forum/src/Plugin/Block/ForumBlockBase.php1
-rw-r--r--core/modules/forum/src/Plugin/Validation/Constraint/ForumLeafConstraintValidator.php1
-rw-r--r--core/modules/forum/src/Tests/ForumUninstallTest.php4
-rw-r--r--core/modules/forum/src/Tests/Migrate/d7/MigrateForumSettingsTest.php2
-rw-r--r--core/modules/forum/tests/src/Unit/Breadcrumb/ForumListingBreadcrumbBuilderTest.php1
-rw-r--r--core/modules/hal/src/Normalizer/NormalizerBase.php1
-rw-r--r--core/modules/help/src/Plugin/Block/HelpBlock.php2
-rw-r--r--core/modules/image/image.field.inc1
-rw-r--r--core/modules/image/src/Form/ImageEffectAddForm.php1
-rw-r--r--core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php2
-rw-r--r--core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatterBase.php1
-rw-r--r--core/modules/image/src/Plugin/migrate/process/d6/ImageCacheActions.php1
-rw-r--r--core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php1
-rw-r--r--core/modules/image/src/Tests/Migrate/d6/MigrateImageCacheTest.php2
-rw-r--r--core/modules/language/src/ConfigurableLanguageInterface.php1
-rw-r--r--core/modules/language/src/ConfigurableLanguageManagerInterface.php1
-rw-r--r--core/modules/language/src/Form/LanguageAddForm.php2
-rw-r--r--core/modules/language/src/Form/LanguageDeleteForm.php1
-rw-r--r--core/modules/language/src/Form/LanguageEditForm.php1
-rw-r--r--core/modules/language/src/Form/NegotiationBrowserDeleteForm.php1
-rw-r--r--core/modules/language/src/Form/NegotiationConfigureForm.php1
-rw-r--r--core/modules/language/src/Tests/Condition/LanguageConditionTest.php1
-rw-r--r--core/modules/language/src/Tests/LanguageBrowserDetectionTest.php3
-rw-r--r--core/modules/language/src/Tests/LanguageDependencyInjectionTest.php2
-rw-r--r--core/modules/language/tests/language_test/src/Plugin/LanguageNegotiation/LanguageNegotiationTestTs.php2
-rw-r--r--core/modules/language/tests/src/Unit/ConfigurableLanguageUnitTest.php3
-rw-r--r--core/modules/language/tests/src/Unit/LanguageNegotiationUrlTest.php1
-rw-r--r--core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php2
-rw-r--r--core/modules/link/src/Plugin/Field/FieldType/LinkItem.php1
-rw-r--r--core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php3
-rw-r--r--core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkAccessConstraintValidatorTest.php1
-rw-r--r--core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkNotExistingInternalConstraintValidatorTest.php1
-rw-r--r--core/modules/locale/locale.install2
-rw-r--r--core/modules/locale/locale.module3
-rw-r--r--core/modules/locale/locale.pages.inc4
-rw-r--r--core/modules/locale/src/Controller/LocaleController.php1
-rw-r--r--core/modules/locale/src/Gettext.php2
-rw-r--r--core/modules/locale/src/LocaleConfigManager.php1
-rw-r--r--core/modules/locale/src/PoDatabaseReader.php1
-rw-r--r--core/modules/locale/src/PoDatabaseWriter.php2
-rw-r--r--core/modules/locale/src/StreamWrapper/TranslationsStream.php1
-rw-r--r--core/modules/locale/src/StringBase.php2
-rw-r--r--core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php1
-rw-r--r--core/modules/locale/src/Tests/LocaleConfigTranslationTest.php1
-rw-r--r--core/modules/locale/src/Tests/LocaleUpdateBase.php1
-rw-r--r--core/modules/menu_link_content/src/Tests/LinksTest.php1
-rw-r--r--core/modules/menu_ui/menu_ui.module1
-rw-r--r--core/modules/menu_ui/src/MenuForm.php1
-rw-r--r--core/modules/menu_ui/src/MenuListBuilder.php1
-rw-r--r--core/modules/menu_ui/src/Tests/MenuLanguageTest.php1
-rw-r--r--core/modules/menu_ui/src/Tests/MenuTest.php1
-rw-r--r--core/modules/migrate/src/Plugin/migrate/destination/EntityFieldInstance.php2
-rw-r--r--core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php1
-rw-r--r--core/modules/migrate/src/Tests/MigrateTestBase.php1
-rw-r--r--core/modules/migrate/tests/src/Unit/process/GetTest.php1
-rw-r--r--core/modules/migrate/tests/src/Unit/process/IteratorTest.php1
-rw-r--r--core/modules/node/node.admin.inc1
-rw-r--r--core/modules/node/node.module1
-rw-r--r--core/modules/node/node.views.inc3
-rw-r--r--core/modules/node/src/Controller/NodeViewController.php1
-rw-r--r--core/modules/node/src/Form/NodeRevisionDeleteForm.php1
-rw-r--r--core/modules/node/src/NodeForm.php1
-rw-r--r--core/modules/node/src/NodeGrantDatabaseStorage.php3
-rw-r--r--core/modules/node/src/NodeInterface.php1
-rw-r--r--core/modules/node/src/NodeViewBuilder.php1
-rw-r--r--core/modules/node/src/ParamConverter/NodePreviewConverter.php1
-rw-r--r--core/modules/node/src/Plugin/Block/SyndicateBlock.php2
-rw-r--r--core/modules/node/src/Plugin/views/field/NodeBulkForm.php1
-rw-r--r--core/modules/node/src/Plugin/views/row/Rss.php2
-rw-r--r--core/modules/node/src/Tests/Migrate/d6/MigrateNodeRevisionTest.php2
-rw-r--r--core/modules/node/src/Tests/Migrate/d6/MigrateNodeTestBase.php1
-rw-r--r--core/modules/node/src/Tests/NodeBodyFieldStorageTest.php3
-rw-r--r--core/modules/node/src/Tests/NodeCacheTagsTest.php1
-rw-r--r--core/modules/node/src/Tests/Views/NodeFieldTokensTest.php3
-rw-r--r--core/modules/options/src/Plugin/views/argument/StringListField.php1
-rw-r--r--core/modules/options/src/Tests/Views/OptionsTestBase.php1
-rw-r--r--core/modules/page_cache/src/StackMiddleware/PageCache.php2
-rw-r--r--core/modules/quickedit/src/MetadataGenerator.php1
-rw-r--r--core/modules/quickedit/src/Tests/MetadataGeneratorTest.php1
-rw-r--r--core/modules/quickedit/tests/modules/quickedit_test.module2
-rw-r--r--core/modules/rdf/src/Tests/Field/DateTimeFieldRdfaTest.php2
-rw-r--r--core/modules/rdf/src/Tests/Field/EmailFieldRdfaTest.php2
-rw-r--r--core/modules/rdf/src/Tests/Field/LinkFieldRdfaTest.php3
-rw-r--r--core/modules/rdf/src/Tests/Field/TextFieldRdfaTest.php2
-rw-r--r--core/modules/responsive_image/responsive_image.module2
-rw-r--r--core/modules/rest/src/LinkManager/LinkManagerBase.php1
-rw-r--r--core/modules/rest/src/Plugin/ResourceBase.php1
-rw-r--r--core/modules/rest/src/Plugin/views/row/DataEntityRow.php1
-rw-r--r--core/modules/rest/src/Plugin/views/style/Serializer.php2
-rw-r--r--core/modules/rest/src/RequestHandler.php1
-rw-r--r--core/modules/rest/src/Routing/ResourceRoutes.php3
-rw-r--r--core/modules/rest/src/Tests/AuthTest.php1
-rw-r--r--core/modules/rest/src/Tests/RESTTestBase.php1
-rw-r--r--core/modules/rest/src/Tests/ReadTest.php1
-rw-r--r--core/modules/rest/src/Tests/UpdateTest.php1
-rw-r--r--core/modules/rest/src/Tests/Views/StyleSerializerTest.php1
-rw-r--r--core/modules/search/src/Controller/SearchController.php2
-rw-r--r--core/modules/search/src/Entity/SearchPage.php1
-rw-r--r--core/modules/search/src/Plugin/Block/SearchBlock.php1
-rw-r--r--core/modules/search/src/SearchQuery.php1
-rw-r--r--core/modules/serialization/src/Normalizer/ComplexDataNormalizer.php2
-rw-r--r--core/modules/serialization/src/Normalizer/ListNormalizer.php2
-rw-r--r--core/modules/serialization/src/Normalizer/TypedDataNormalizer.php2
-rw-r--r--core/modules/serialization/src/Tests/EntitySerializationTest.php2
-rw-r--r--core/modules/shortcut/src/Controller/ShortcutController.php1
-rw-r--r--core/modules/shortcut/src/Controller/ShortcutSetController.php1
-rw-r--r--core/modules/shortcut/src/Form/SetCustomize.php2
-rw-r--r--core/modules/shortcut/src/Form/SwitchShortcutSet.php1
-rw-r--r--core/modules/shortcut/src/Plugin/migrate/destination/EntityShortcutSet.php1
-rw-r--r--core/modules/simpletest/simpletest.module1
-rw-r--r--core/modules/simpletest/src/Form/SimpletestResultsForm.php1
-rw-r--r--core/modules/simpletest/src/Form/SimpletestTestForm.php1
-rw-r--r--core/modules/simpletest/src/TestBase.php1
-rw-r--r--core/modules/system/src/Controller/SystemController.php1
-rw-r--r--core/modules/system/src/Entity/Menu.php1
-rw-r--r--core/modules/system/src/EventSubscriber/ConfigCacheTag.php1
-rw-r--r--core/modules/system/src/Form/ModulesListForm.php5
-rw-r--r--core/modules/system/src/Form/ModulesUninstallConfirmForm.php1
-rw-r--r--core/modules/system/src/Form/ThemeSettingsForm.php1
-rw-r--r--core/modules/system/src/Plugin/Block/SystemBrandingBlock.php2
-rw-r--r--core/modules/system/src/Plugin/Block/SystemMainBlock.php2
-rw-r--r--core/modules/system/src/Plugin/Block/SystemMessagesBlock.php1
-rw-r--r--core/modules/system/src/Plugin/Block/SystemPoweredByBlock.php2
-rw-r--r--core/modules/system/src/Plugin/Condition/RequestPath.php1
-rw-r--r--core/modules/system/src/SystemManager.php2
-rw-r--r--core/modules/system/src/Tests/Common/AttachedAssetsTest.php1
-rw-r--r--core/modules/system/src/Tests/Common/PageRenderTest.php1
-rw-r--r--core/modules/system/src/Tests/Common/RenderTest.php3
-rw-r--r--core/modules/system/src/Tests/Database/ConnectionUnitTest.php2
-rw-r--r--core/modules/system/src/Tests/DrupalKernel/ServiceDestructionTest.php1
-rw-r--r--core/modules/system/src/Tests/Entity/EntityTypeConstraintValidatorTest.php1
-rw-r--r--core/modules/system/src/Tests/Form/ElementsTableSelectTest.php1
-rw-r--r--core/modules/system/src/Tests/Path/UrlAlterFunctionalTest.php1
-rw-r--r--core/modules/system/src/Tests/Routing/RouterPermissionTest.php2
-rw-r--r--core/modules/system/src/Tests/Routing/RouterTest.php1
-rw-r--r--core/modules/system/src/Tests/System/TrustedHostsTest.php4
-rw-r--r--core/modules/system/src/Tests/Theme/TwigFilterTest.php1
-rw-r--r--core/modules/system/src/Tests/Theme/TwigTransTest.php3
-rw-r--r--core/modules/system/src/Tests/Update/FilterHtmlUpdateTest.php1
-rw-r--r--core/modules/system/src/Tests/Update/SevenSecondaryLocalTasksConvertedIntoBlockUpdateTest.php2
-rw-r--r--core/modules/system/src/Tests/Update/SiteBrandingConvertedIntoBlockUpdateTest.php2
-rw-r--r--core/modules/system/system.admin.inc4
-rw-r--r--core/modules/system/system.install2
-rw-r--r--core/modules/system/tests/modules/cache_test/src/Controller/CacheTestController.php2
-rw-r--r--core/modules/system/tests/modules/database_test/database_test.module1
-rw-r--r--core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMul.php4
-rw-r--r--core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulRev.php4
-rw-r--r--core/modules/system/tests/modules/entity_test/src/Entity/EntityTestRev.php1
-rw-r--r--core/modules/system/tests/modules/entity_test/src/EntityTestForm.php1
-rw-r--r--core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraintValidator.php1
-rw-r--r--core/modules/system/tests/modules/menu_test/src/TestControllers.php1
-rw-r--r--core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockComplexContextBlock.php1
-rw-r--r--core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockMenuBlock.php2
-rw-r--r--core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockUserNameBlock.php1
-rw-r--r--core/modules/system/tests/modules/session_test/src/Controller/SessionTestController.php1
-rw-r--r--core/modules/system/tests/modules/test_page_test/src/Controller/Test.php2
-rw-r--r--core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php1
-rw-r--r--core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php2
-rw-r--r--core/modules/taxonomy/src/Plugin/migrate/builder/d6/TermNode.php1
-rw-r--r--core/modules/taxonomy/src/Plugin/views/argument/IndexTid.php1
-rw-r--r--core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php1
-rw-r--r--core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php2
-rw-r--r--core/modules/taxonomy/src/Plugin/views/argument_validator/TermName.php2
-rw-r--r--core/modules/taxonomy/src/Plugin/views/field/TaxonomyIndexTid.php1
-rw-r--r--core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php2
-rw-r--r--core/modules/taxonomy/src/TermStorage.php1
-rw-r--r--core/modules/taxonomy/src/Tests/EfqTest.php2
-rw-r--r--core/modules/taxonomy/src/Tests/Migrate/d6/MigrateVocabularyFieldInstanceTest.php1
-rw-r--r--core/modules/taxonomy/src/Tests/TermKernelTest.php1
-rw-r--r--core/modules/taxonomy/src/Tests/Views/TaxonomyIndexTidUiTest.php1
-rw-r--r--core/modules/taxonomy/src/Tests/Views/TaxonomyRelationshipTest.php1
-rw-r--r--core/modules/taxonomy/src/Tests/Views/TaxonomyViewsFieldAccessTest.php1
-rw-r--r--core/modules/taxonomy/src/Tests/VocabularyCrudTest.php1
-rw-r--r--core/modules/taxonomy/src/VocabularyStorage.php1
-rw-r--r--core/modules/text/src/Plugin/Field/FieldWidget/TextareaWithSummaryWidget.php1
-rw-r--r--core/modules/text/src/TextProcessed.php1
-rw-r--r--core/modules/text/text.module1
-rw-r--r--core/modules/toolbar/src/Tests/ToolbarAdminMenuTest.php1
-rw-r--r--core/modules/toolbar/toolbar.module2
-rw-r--r--core/modules/tour/src/Entity/Tour.php1
-rw-r--r--core/modules/tour/src/TipPluginBase.php1
-rw-r--r--core/modules/tour/src/TourViewBuilder.php1
-rw-r--r--core/modules/tour/tour.module1
-rw-r--r--core/modules/update/tests/modules/update_test/update_test.module2
-rw-r--r--core/modules/update/update.module1
-rw-r--r--core/modules/user/src/AccountForm.php2
-rw-r--r--core/modules/user/src/Entity/Role.php1
-rw-r--r--core/modules/user/src/Form/UserLoginForm.php1
-rw-r--r--core/modules/user/src/Form/UserPasswordForm.php2
-rw-r--r--core/modules/user/src/Plugin/Action/AddRoleUser.php4
-rw-r--r--core/modules/user/src/Plugin/Action/RemoveRoleUser.php4
-rw-r--r--core/modules/user/src/Plugin/Condition/UserRole.php1
-rw-r--r--core/modules/user/src/Plugin/LanguageNegotiation/LanguageNegotiationUserAdmin.php1
-rw-r--r--core/modules/user/src/Plugin/Validation/Constraint/UserMailRequired.php1
-rw-r--r--core/modules/user/src/Plugin/views/access/Role.php1
-rw-r--r--core/modules/user/src/Plugin/views/argument_default/User.php1
-rw-r--r--core/modules/user/src/Plugin/views/field/UserBulkForm.php1
-rw-r--r--core/modules/user/src/Plugin/views/field/UserData.php2
-rw-r--r--core/modules/user/src/Plugin/views/filter/Name.php1
-rw-r--r--core/modules/user/src/RoleForm.php1
-rw-r--r--core/modules/user/src/SharedTempStoreFactory.php1
-rw-r--r--core/modules/user/src/Tests/TempStoreDatabaseTest.php1
-rw-r--r--core/modules/user/src/Tests/UserAccountLinksTest.php1
-rw-r--r--core/modules/user/src/Tests/UserEntityTest.php1
-rw-r--r--core/modules/user/src/Tests/UserLoginTest.php1
-rw-r--r--core/modules/user/src/Tests/UserPermissionsTest.php1
-rw-r--r--core/modules/user/src/Tests/UserValidationTest.php2
-rw-r--r--core/modules/user/src/Tests/Views/AccessRoleTest.php1
-rw-r--r--core/modules/user/src/Tests/Views/HandlerFieldRoleTest.php1
-rw-r--r--core/modules/user/src/Tests/Views/HandlerFilterRolesTest.php1
-rw-r--r--core/modules/user/src/UserDataInterface.php2
-rw-r--r--core/modules/user/tests/src/Unit/Plugin/Core/Entity/UserTest.php3
-rw-r--r--core/modules/user/user.api.php2
-rw-r--r--core/modules/user/user.module1
-rw-r--r--core/modules/views/src/Analyzer.php1
-rw-r--r--core/modules/views/src/Annotation/ViewsAccess.php1
-rw-r--r--core/modules/views/src/Annotation/ViewsArgumentDefault.php2
-rw-r--r--core/modules/views/src/Annotation/ViewsArgumentValidator.php2
-rw-r--r--core/modules/views/src/Annotation/ViewsCache.php2
-rw-r--r--core/modules/views/src/Annotation/ViewsDisplay.php2
-rw-r--r--core/modules/views/src/Annotation/ViewsExposedForm.php2
-rw-r--r--core/modules/views/src/Annotation/ViewsPager.php2
-rw-r--r--core/modules/views/src/Annotation/ViewsQuery.php2
-rw-r--r--core/modules/views/src/Annotation/ViewsRow.php2
-rw-r--r--core/modules/views/src/Annotation/ViewsStyle.php2
-rw-r--r--core/modules/views/src/Annotation/ViewsWizard.php2
-rw-r--r--core/modules/views/src/Controller/ViewAjaxController.php1
-rw-r--r--core/modules/views/src/Entity/Render/EntityFieldRenderer.php1
-rw-r--r--core/modules/views/src/EventSubscriber/RouteSubscriber.php2
-rw-r--r--core/modules/views/src/Form/ViewsExposedForm.php1
-rw-r--r--core/modules/views/src/Plugin/Block/ViewsBlock.php2
-rw-r--r--core/modules/views/src/Plugin/Derivative/ViewsLocalTask.php1
-rw-r--r--core/modules/views/src/Plugin/views/HandlerBase.php1
-rw-r--r--core/modules/views/src/Plugin/views/area/Entity.php1
-rw-r--r--core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php1
-rw-r--r--core/modules/views/src/Plugin/views/argument/Date.php2
-rw-r--r--core/modules/views/src/Plugin/views/argument_default/ArgumentDefaultPluginBase.php1
-rw-r--r--core/modules/views/src/Plugin/views/argument_default/Raw.php1
-rw-r--r--core/modules/views/src/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php1
-rw-r--r--core/modules/views/src/Plugin/views/argument_validator/Entity.php1
-rw-r--r--core/modules/views/src/Plugin/views/cache/CachePluginBase.php1
-rw-r--r--core/modules/views/src/Plugin/views/display/DisplayPluginBase.php3
-rw-r--r--core/modules/views/src/Plugin/views/display/Feed.php1
-rw-r--r--core/modules/views/src/Plugin/views/display/Page.php2
-rw-r--r--core/modules/views/src/Plugin/views/display/PathPluginBase.php2
-rw-r--r--core/modules/views/src/Plugin/views/display_extender/DisplayExtenderPluginBase.php1
-rw-r--r--core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php3
-rw-r--r--core/modules/views/src/Plugin/views/field/EntityLabel.php1
-rw-r--r--core/modules/views/src/Plugin/views/field/FieldPluginBase.php2
-rw-r--r--core/modules/views/src/Plugin/views/field/LinkBase.php2
-rw-r--r--core/modules/views/src/Plugin/views/field/MachineName.php1
-rw-r--r--core/modules/views/src/Plugin/views/filter/Bundle.php1
-rw-r--r--core/modules/views/src/Plugin/views/filter/NumericFilter.php1
-rw-r--r--core/modules/views/src/Plugin/views/filter/StringFilter.php1
-rw-r--r--core/modules/views/src/Plugin/views/pager/PagerPluginBase.php1
-rw-r--r--core/modules/views/src/Plugin/views/query/QueryPluginBase.php1
-rw-r--r--core/modules/views/src/Plugin/views/relationship/EntityReverse.php3
-rw-r--r--core/modules/views/src/Plugin/views/row/RowPluginBase.php1
-rw-r--r--core/modules/views/src/Plugin/views/style/DefaultSummary.php1
-rw-r--r--core/modules/views/src/Plugin/views/style/Table.php3
-rw-r--r--core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php1
-rw-r--r--core/modules/views/src/Tests/EventSubscriber/ViewsEntitySchemaSubscriberIntegrationTest.php1
-rw-r--r--core/modules/views/src/Tests/Handler/FieldDropButtonTest.php2
-rw-r--r--core/modules/views/src/Tests/Handler/FieldEntityOperationsTest.php1
-rw-r--r--core/modules/views/src/Tests/Plugin/AccessTest.php1
-rw-r--r--core/modules/views/src/Tests/Plugin/DisplayExtenderTest.php1
-rw-r--r--core/modules/views/src/Tests/Plugin/DisplayPageTest.php1
-rw-r--r--core/modules/views/src/Tests/Plugin/StyleGridTest.php1
-rw-r--r--core/modules/views/src/Tests/Plugin/ViewsBlockTest.php1
-rw-r--r--core/modules/views/src/Tests/Plugin/ViewsFormTest.php1
-rw-r--r--core/modules/views/src/Tests/ViewKernelTestBase.php2
-rw-r--r--core/modules/views/src/Tests/ViewRenderTest.php1
-rw-r--r--core/modules/views/src/Tests/ViewResultAssertionTrait.php1
-rw-r--r--core/modules/views/src/Tests/ViewStorageTest.php3
-rw-r--r--core/modules/views/src/Tests/ViewsTemplateTest.php1
-rw-r--r--core/modules/views/src/ViewExecutable.php4
-rw-r--r--core/modules/views/src/ViewExecutableFactory.php1
-rw-r--r--core/modules/views/tests/modules/views_test_data/views_test_data.module2
-rw-r--r--core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php1
-rw-r--r--core/modules/views/views.module4
-rw-r--r--core/modules/views_ui/admin.inc4
-rw-r--r--core/modules/views_ui/src/Form/Ajax/Analyze.php2
-rw-r--r--core/modules/views_ui/src/Form/Ajax/EditDetails.php1
-rw-r--r--core/modules/views_ui/src/Form/Ajax/ReorderDisplays.php1
-rw-r--r--core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php1
-rw-r--r--core/modules/views_ui/src/Tests/QueryTest.php2
-rw-r--r--core/modules/views_ui/src/Tests/ViewEditTest.php1
-rw-r--r--core/modules/views_ui/tests/src/Unit/ViewUIObjectTest.php2
-rw-r--r--core/modules/views_ui/views_ui.module1
-rw-r--r--core/profiles/standard/standard.install1
-rwxr-xr-xcore/scripts/run-tests.sh2
-rw-r--r--core/tests/Drupal/KernelTests/Component/Utility/SafeMarkupKernelTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Config/DefaultConfigTest.php2
-rw-r--r--core/tests/Drupal/Tests/Component/DependencyInjection/PhpArrayContainerTest.php1
-rw-r--r--core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/Ajax/AjaxResponseTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/Cache/CacheTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Condition/ConditionAccessResolverTraitTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/Config/ConfigTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/Database/ConnectionTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/Database/Driver/pgsql/PostgresqlConnectionTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/BackendCompilerPassTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/ProxyServicesPassTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php3
-rw-r--r--core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Form/FormCacheTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/Form/FormTestBase.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Logger/LoggerChannelFactoryTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Menu/ContextualLinkDefaultTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/Menu/LocalActionDefaultTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/Menu/LocalActionManagerTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/Menu/LocalTaskIntegrationTestBase.php1
-rw-r--r--core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/Plugin/Discovery/DerivativeDiscoveryDecoratorTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/Render/Element/TableSelectTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/Render/RendererTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/Routing/ContentTypeHeaderMatcherTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/Routing/CurrentRouteMatchTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Routing/RouteMatchTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/Routing/RouteMatchTestBase.php3
-rw-r--r--core/tests/Drupal/Tests/Core/Session/AnonymousUserSessionTest.php6
-rw-r--r--core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/Theme/ThemeNegotiatorTest.php2
-rw-r--r--core/tests/Drupal/Tests/UnitTestCase.php1
-rw-r--r--core/themes/bartik/bartik.theme1
-rw-r--r--core/themes/engines/twig/twig.engine1
-rw-r--r--core/themes/seven/seven.theme1
580 files changed, 3 insertions, 899 deletions
diff --git a/core/includes/batch.inc b/core/includes/batch.inc
index 77fd3a2..6d0c835 100644
--- a/core/includes/batch.inc
+++ b/core/includes/batch.inc
@@ -14,7 +14,6 @@
* @see batch_get()
*/
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Component\Utility\Timer;
use Drupal\Component\Utility\UrlHelper;
use Drupal\Core\Batch\Percentage;
diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc
index 6b6d897..41c6eb0 100644
--- a/core/includes/bootstrap.inc
+++ b/core/includes/bootstrap.inc
@@ -4,23 +4,15 @@
* Functions that need to be loaded on every Drupal request.
*/
-use Drupal\Component\Datetime\DateTimePlus;
use Drupal\Component\Utility\Crypt;
-use Drupal\Component\Utility\Environment;
use Drupal\Component\Utility\Html;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\Component\Utility\Unicode;
-use Drupal\Core\DrupalKernel;
-use Drupal\Core\Extension\ExtensionDiscovery;
use Drupal\Core\Logger\RfcLogLevel;
use Drupal\Core\Render\Markup;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Site\Settings;
use Drupal\Core\Utility\Error;
-use Symfony\Component\ClassLoader\ApcClassLoader;
-use Symfony\Component\HttpFoundation\Request;
-use Symfony\Component\HttpFoundation\Response;
-use Drupal\Core\Language\LanguageInterface;
/**
* Minimum supported version of PHP.
diff --git a/core/includes/common.inc b/core/includes/common.inc
index 8681d81..31492ed 100644
--- a/core/includes/common.inc
+++ b/core/includes/common.inc
@@ -9,35 +9,18 @@
*/
use Drupal\Component\Serialization\Json;
-use Drupal\Component\Serialization\Yaml;
-use Drupal\Component\Serialization\Exception\InvalidDataTypeException;
use Drupal\Component\Utility\Bytes;
-use Drupal\Component\Utility\Crypt;
use Drupal\Component\Utility\Html;
-use Drupal\Component\Utility\Number;
use Drupal\Component\Utility\SortArray;
-use Drupal\Component\Utility\SafeMarkup;
-use Drupal\Component\Utility\Tags;
use Drupal\Component\Utility\UrlHelper;
-use Drupal\Core\Asset\AttachedAssets;
use Drupal\Core\Cache\Cache;
-use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Render\Markup;
use Drupal\Core\Render\Renderer;
-use Drupal\Core\Site\Settings;
use Drupal\Core\StringTranslation\TranslatableMarkup;
-use Drupal\Core\Url;
-use Symfony\Component\HttpFoundation\Response;
-use Symfony\Component\HttpFoundation\Request;
use Drupal\Core\PhpStorage\PhpStorageFactory;
-use Drupal\Component\Utility\NestedArray;
-use Drupal\Core\Datetime\DrupalDateTime;
-use Drupal\Core\Routing\GeneratorNotInitializedException;
use Drupal\Core\StringTranslation\PluralTranslatableMarkup;
-use Drupal\Core\Template\Attribute;
use Drupal\Core\Render\BubbleableMetadata;
use Drupal\Core\Render\Element;
-use Drupal\Core\Session\AnonymousUserSession;
/**
* @defgroup php_wrappers PHP wrapper functions
diff --git a/core/includes/entity.inc b/core/includes/entity.inc
index d79381a..70e8019 100644
--- a/core/includes/entity.inc
+++ b/core/includes/entity.inc
@@ -5,8 +5,6 @@
* Entity API for handling entities like nodes or users.
*/
-use Drupal\Core\Cache\Cache;
-use Drupal\Core\Entity\EntityStorageException;
use Drupal\Core\Entity\EntityInterface;
/**
diff --git a/core/includes/file.inc b/core/includes/file.inc
index 4200b87..63f4bb3 100644
--- a/core/includes/file.inc
+++ b/core/includes/file.inc
@@ -5,14 +5,12 @@
* API for handling file uploads and server file management.
*/
-use Drupal\Component\Utility\Html;
use Drupal\Component\Utility\Unicode;
use Drupal\Component\Utility\UrlHelper;
use Drupal\Component\PhpStorage\FileStorage;
use Drupal\Component\Utility\Bytes;
use Drupal\Core\File\FileSystem;
use Drupal\Core\StreamWrapper\PublicStream;
-use Drupal\Core\StreamWrapper\StreamWrapperInterface;
use Drupal\Core\StreamWrapper\PrivateStream;
/**
diff --git a/core/includes/form.inc b/core/includes/form.inc
index 678a640..a3d17a7 100644
--- a/core/includes/form.inc
+++ b/core/includes/form.inc
@@ -5,12 +5,7 @@
* Functions for form and batch generation and processing.
*/
-use Drupal\Component\Utility\NestedArray;
use Drupal\Component\Utility\UrlHelper;
-use Drupal\Component\Utility\Xss;
-use Drupal\Core\Database\Database;
-use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Form\OptGroup;
use Drupal\Core\Render\Element;
use Drupal\Core\Template\Attribute;
use Drupal\Core\Url;
diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc
index bd7b7ec..60ef2d7 100644
--- a/core/includes/install.core.inc
+++ b/core/includes/install.core.inc
@@ -1,6 +1,5 @@
<?php
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Component\Utility\UrlHelper;
use Drupal\Core\DrupalKernel;
use Drupal\Core\Config\BootstrapConfigStorageFactory;
diff --git a/core/includes/module.inc b/core/includes/module.inc
index 8f8bf9c..bc50d2c 100644
--- a/core/includes/module.inc
+++ b/core/includes/module.inc
@@ -5,7 +5,6 @@
* API for loading and interacting with Drupal modules.
*/
-use Drupal\Core\Cache\Cache;
use Drupal\Core\Extension\ExtensionDiscovery;
/**
diff --git a/core/includes/pager.inc b/core/includes/pager.inc
index 7b106ea..796cc01 100644
--- a/core/includes/pager.inc
+++ b/core/includes/pager.inc
@@ -5,7 +5,6 @@
* Functions to aid in presenting database results as a set of pages.
*/
-use Drupal\Core\Template\Attribute;
use Drupal\Component\Utility\UrlHelper;
/**
diff --git a/core/includes/schema.inc b/core/includes/schema.inc
index bba4eab..4712d3b 100644
--- a/core/includes/schema.inc
+++ b/core/includes/schema.inc
@@ -5,8 +5,6 @@
* Schema API handling functions.
*/
-use Drupal\Core\Database\Database;
-
/**
* @addtogroup schemaapi
* @{
diff --git a/core/includes/theme.inc b/core/includes/theme.inc
index 733fc9f..106d30c 100644
--- a/core/includes/theme.inc
+++ b/core/includes/theme.inc
@@ -14,7 +14,6 @@ use Drupal\Component\Utility\Html;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\Component\Render\MarkupInterface;
use Drupal\Component\Utility\Unicode;
-use Drupal\Component\Utility\Xss;
use Drupal\Core\Config\Config;
use Drupal\Core\Config\StorageException;
use Drupal\Core\Render\RenderableInterface;
diff --git a/core/includes/update.inc b/core/includes/update.inc
index 24eeddf..68401a9 100644
--- a/core/includes/update.inc
+++ b/core/includes/update.inc
@@ -9,7 +9,6 @@
*/
use Drupal\Component\Graph\Graph;
-use Drupal\Component\Utility\Html;
use Drupal\Core\Utility\Error;
/**
diff --git a/core/includes/utility.inc b/core/includes/utility.inc
index 4918719..2bb6507 100644
--- a/core/includes/utility.inc
+++ b/core/includes/utility.inc
@@ -5,7 +5,6 @@
* Miscellaneous functions.
*/
-use Drupal\Component\Utility\Variable;
use Drupal\Core\PhpStorage\PhpStorageFactory;
use Drupal\Core\Cache\Cache;
use Drupal\Core\DrupalKernel;
diff --git a/core/lib/Drupal/Component/Gettext/PoMemoryWriter.php b/core/lib/Drupal/Component/Gettext/PoMemoryWriter.php
index d44f18d..3026c32 100644
--- a/core/lib/Drupal/Component/Gettext/PoMemoryWriter.php
+++ b/core/lib/Drupal/Component/Gettext/PoMemoryWriter.php
@@ -7,10 +7,6 @@
namespace Drupal\Component\Gettext;
-use Drupal\Component\Gettext\PoWriterInterface;
-use Drupal\Component\Gettext\PoHeader;
-use Drupal\Component\Gettext\PoItem;
-
/**
* Defines a Gettext PO memory writer, to be used by the installer.
*/
diff --git a/core/lib/Drupal/Component/Gettext/PoMetadataInterface.php b/core/lib/Drupal/Component/Gettext/PoMetadataInterface.php
index 5801daa..f3b54db 100644
--- a/core/lib/Drupal/Component/Gettext/PoMetadataInterface.php
+++ b/core/lib/Drupal/Component/Gettext/PoMetadataInterface.php
@@ -7,8 +7,6 @@
namespace Drupal\Component\Gettext;
-use Drupal\Component\Gettext\PoHeader;
-
/**
* Methods required for both reader and writer implementations.
*
diff --git a/core/lib/Drupal/Component/Gettext/PoReaderInterface.php b/core/lib/Drupal/Component/Gettext/PoReaderInterface.php
index 49b73df..c9beba1 100644
--- a/core/lib/Drupal/Component/Gettext/PoReaderInterface.php
+++ b/core/lib/Drupal/Component/Gettext/PoReaderInterface.php
@@ -7,8 +7,6 @@
namespace Drupal\Component\Gettext;
-use Drupal\Component\Gettext\PoMetadataInterface;
-
/**
* Shared interface definition for all Gettext PO Readers.
*/
diff --git a/core/lib/Drupal/Component/Gettext/PoStreamReader.php b/core/lib/Drupal/Component/Gettext/PoStreamReader.php
index 0cf52ad..9e58d80 100644
--- a/core/lib/Drupal/Component/Gettext/PoStreamReader.php
+++ b/core/lib/Drupal/Component/Gettext/PoStreamReader.php
@@ -7,9 +7,6 @@
namespace Drupal\Component\Gettext;
-use Drupal\Component\Gettext\PoReaderInterface;
-use Drupal\Component\Gettext\PoStreamInterface;
-use Drupal\Component\Gettext\PoHeader;
use Drupal\Component\Utility\SafeMarkup;
/**
diff --git a/core/lib/Drupal/Component/Gettext/PoStreamWriter.php b/core/lib/Drupal/Component/Gettext/PoStreamWriter.php
index 848171b..e804a2e 100644
--- a/core/lib/Drupal/Component/Gettext/PoStreamWriter.php
+++ b/core/lib/Drupal/Component/Gettext/PoStreamWriter.php
@@ -7,12 +7,6 @@
namespace Drupal\Component\Gettext;
-use Drupal\Component\Gettext\PoHeader;
-use Drupal\Component\Gettext\PoItem;
-use Drupal\Component\Gettext\PoReaderInterface;
-use Drupal\Component\Gettext\PoWriterInterface;
-use Drupal\Component\Gettext\PoStreamInterface;
-
/**
* Defines a Gettext PO stream writer.
*/
diff --git a/core/lib/Drupal/Component/Gettext/PoWriterInterface.php b/core/lib/Drupal/Component/Gettext/PoWriterInterface.php
index 18206d9..fa4ece4 100644
--- a/core/lib/Drupal/Component/Gettext/PoWriterInterface.php
+++ b/core/lib/Drupal/Component/Gettext/PoWriterInterface.php
@@ -7,9 +7,6 @@
namespace Drupal\Component\Gettext;
-use Drupal\Component\Gettext\PoMetadataInterface;
-use Drupal\Component\Gettext\PoItem;
-
/**
* Shared interface definition for all Gettext PO Writers.
*/
diff --git a/core/lib/Drupal/Component/Plugin/Exception/InvalidDecoratedMethod.php b/core/lib/Drupal/Component/Plugin/Exception/InvalidDecoratedMethod.php
index 57fd835..24427bf 100644
--- a/core/lib/Drupal/Component/Plugin/Exception/InvalidDecoratedMethod.php
+++ b/core/lib/Drupal/Component/Plugin/Exception/InvalidDecoratedMethod.php
@@ -6,7 +6,6 @@
namespace Drupal\Component\Plugin\Exception;
-use Drupal\Component\Plugin\Exception\ExceptionInterface;
use \BadMethodCallException;
/**
diff --git a/core/lib/Drupal/Core/Action/ConfigurableActionBase.php b/core/lib/Drupal/Core/Action/ConfigurableActionBase.php
index e036880..8e32972 100644
--- a/core/lib/Drupal/Core/Action/ConfigurableActionBase.php
+++ b/core/lib/Drupal/Core/Action/ConfigurableActionBase.php
@@ -8,7 +8,6 @@
namespace Drupal\Core\Action;
use Drupal\Component\Plugin\ConfigurablePluginInterface;
-use Drupal\Core\Action\ActionBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\PluginFormInterface;
diff --git a/core/lib/Drupal/Core/Ajax/AddCssCommand.php b/core/lib/Drupal/Core/Ajax/AddCssCommand.php
index c5a0208..f7d1677 100644
--- a/core/lib/Drupal/Core/Ajax/AddCssCommand.php
+++ b/core/lib/Drupal/Core/Ajax/AddCssCommand.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
-use Drupal\Core\Ajax\CommandInterface;
-
/**
* An AJAX command for adding css to the page via ajax.
*
diff --git a/core/lib/Drupal/Core/Ajax/AfterCommand.php b/core/lib/Drupal/Core/Ajax/AfterCommand.php
index ae27030..05cf95c 100644
--- a/core/lib/Drupal/Core/Ajax/AfterCommand.php
+++ b/core/lib/Drupal/Core/Ajax/AfterCommand.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
-use Drupal\Core\Ajax\InsertCommand;
-
/**
* An AJAX command for calling the jQuery after() method.
*
diff --git a/core/lib/Drupal/Core/Ajax/AjaxResponse.php b/core/lib/Drupal/Core/Ajax/AjaxResponse.php
index c2e8967..6772341 100644
--- a/core/lib/Drupal/Core/Ajax/AjaxResponse.php
+++ b/core/lib/Drupal/Core/Ajax/AjaxResponse.php
@@ -7,15 +7,10 @@
namespace Drupal\Core\Ajax;
-use Drupal\Core\Asset\AttachedAssets;
use Drupal\Core\Render\BubbleableMetadata;
-use Drupal\Core\Render\Renderer;
use Drupal\Core\Render\AttachmentsInterface;
use Drupal\Core\Render\AttachmentsTrait;
-use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\JsonResponse;
-use Symfony\Component\HttpFoundation\Request;
-use Symfony\Component\HttpFoundation\Response;
/**
* JSON response object for AJAX requests.
diff --git a/core/lib/Drupal/Core/Ajax/AlertCommand.php b/core/lib/Drupal/Core/Ajax/AlertCommand.php
index 65a9f46..dbfb0d5 100644
--- a/core/lib/Drupal/Core/Ajax/AlertCommand.php
+++ b/core/lib/Drupal/Core/Ajax/AlertCommand.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
-use Drupal\Core\Ajax\CommandInterface;
-
/**
* AJAX command for a javascript alert box.
*
diff --git a/core/lib/Drupal/Core/Ajax/AppendCommand.php b/core/lib/Drupal/Core/Ajax/AppendCommand.php
index 041f794..26061b2 100644
--- a/core/lib/Drupal/Core/Ajax/AppendCommand.php
+++ b/core/lib/Drupal/Core/Ajax/AppendCommand.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
-use Drupal\Core\Ajax\InsertCommand;
-
/**
* An AJAX command for calling the jQuery append() method.
*
diff --git a/core/lib/Drupal/Core/Ajax/BeforeCommand.php b/core/lib/Drupal/Core/Ajax/BeforeCommand.php
index 8d52628..7bf8f41 100644
--- a/core/lib/Drupal/Core/Ajax/BeforeCommand.php
+++ b/core/lib/Drupal/Core/Ajax/BeforeCommand.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
-use Drupal\Core\Ajax\InsertCommand;
-
/**
* An AJAX command for calling the jQuery before() method.
*
diff --git a/core/lib/Drupal/Core/Ajax/ChangedCommand.php b/core/lib/Drupal/Core/Ajax/ChangedCommand.php
index 7f30972..ec92f68 100644
--- a/core/lib/Drupal/Core/Ajax/ChangedCommand.php
+++ b/core/lib/Drupal/Core/Ajax/ChangedCommand.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
-use Drupal\Core\Ajax\CommandInterface;
-
/**
* An AJAX command for marking HTML elements as changed.
*
diff --git a/core/lib/Drupal/Core/Ajax/CloseModalDialogCommand.php b/core/lib/Drupal/Core/Ajax/CloseModalDialogCommand.php
index 46d0080..64973ae 100644
--- a/core/lib/Drupal/Core/Ajax/CloseModalDialogCommand.php
+++ b/core/lib/Drupal/Core/Ajax/CloseModalDialogCommand.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
-use Drupal\Core\Ajax\CloseDialogCommand;
-
/**
* Defines an AJAX command that closes the currently visible modal dialog.
*
diff --git a/core/lib/Drupal/Core/Ajax/CssCommand.php b/core/lib/Drupal/Core/Ajax/CssCommand.php
index 1a14a40..24766f3 100644
--- a/core/lib/Drupal/Core/Ajax/CssCommand.php
+++ b/core/lib/Drupal/Core/Ajax/CssCommand.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
-use Drupal\Core\Ajax\CommandInterface;
-
/**
* An AJAX command for calling the jQuery css() method.
*
diff --git a/core/lib/Drupal/Core/Ajax/DataCommand.php b/core/lib/Drupal/Core/Ajax/DataCommand.php
index a495f71..4604bf2 100644
--- a/core/lib/Drupal/Core/Ajax/DataCommand.php
+++ b/core/lib/Drupal/Core/Ajax/DataCommand.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
-use Drupal\Core\Ajax\CommandInterface;
-
/**
* An AJAX command for implementing jQuery's data() method.
*
diff --git a/core/lib/Drupal/Core/Ajax/HtmlCommand.php b/core/lib/Drupal/Core/Ajax/HtmlCommand.php
index cbae08e..96a8d33 100644
--- a/core/lib/Drupal/Core/Ajax/HtmlCommand.php
+++ b/core/lib/Drupal/Core/Ajax/HtmlCommand.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
-use Drupal\Core\Ajax\InsertCommand;
-
/**
* AJAX command for calling the jQuery html() method.
*
diff --git a/core/lib/Drupal/Core/Ajax/InsertCommand.php b/core/lib/Drupal/Core/Ajax/InsertCommand.php
index 05a7fd1..8c477f5 100644
--- a/core/lib/Drupal/Core/Ajax/InsertCommand.php
+++ b/core/lib/Drupal/Core/Ajax/InsertCommand.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
-use Drupal\Core\Ajax\CommandInterface;
-
/**
* Generic AJAX command for inserting content.
*
diff --git a/core/lib/Drupal/Core/Ajax/InvokeCommand.php b/core/lib/Drupal/Core/Ajax/InvokeCommand.php
index 8c03210..6c1d16e 100644
--- a/core/lib/Drupal/Core/Ajax/InvokeCommand.php
+++ b/core/lib/Drupal/Core/Ajax/InvokeCommand.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
-use Drupal\Core\Ajax\CommandInterface;
-
/**
* AJAX command for invoking an arbitrary jQuery method.
*
diff --git a/core/lib/Drupal/Core/Ajax/OpenDialogCommand.php b/core/lib/Drupal/Core/Ajax/OpenDialogCommand.php
index d373cf8..3c351fd 100644
--- a/core/lib/Drupal/Core/Ajax/OpenDialogCommand.php
+++ b/core/lib/Drupal/Core/Ajax/OpenDialogCommand.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
-use Drupal\Core\Ajax\CommandInterface;
-
/**
* Defines an AJAX command to open certain content in a dialog.
*
diff --git a/core/lib/Drupal/Core/Ajax/OpenModalDialogCommand.php b/core/lib/Drupal/Core/Ajax/OpenModalDialogCommand.php
index e9b2c4f..519d192 100644
--- a/core/lib/Drupal/Core/Ajax/OpenModalDialogCommand.php
+++ b/core/lib/Drupal/Core/Ajax/OpenModalDialogCommand.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
-use Drupal\Core\Ajax\OpenDialogCommand;
-
/**
* Defines an AJAX command to open certain content in a dialog in a modal dialog.
*
diff --git a/core/lib/Drupal/Core/Ajax/PrependCommand.php b/core/lib/Drupal/Core/Ajax/PrependCommand.php
index c6cc036..0ccc6d8 100644
--- a/core/lib/Drupal/Core/Ajax/PrependCommand.php
+++ b/core/lib/Drupal/Core/Ajax/PrependCommand.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
-use Drupal\Core\Ajax\InsertCommand;
-
/**
* AJAX command for calling the jQuery insert() method.
*
diff --git a/core/lib/Drupal/Core/Ajax/RedirectCommand.php b/core/lib/Drupal/Core/Ajax/RedirectCommand.php
index f7d05e1..cd4c6d5 100644
--- a/core/lib/Drupal/Core/Ajax/RedirectCommand.php
+++ b/core/lib/Drupal/Core/Ajax/RedirectCommand.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
-use Drupal\Core\Ajax\CommandInterface;
-
/**
* Defines an AJAX command to set the window.location, loading that URL.
*
diff --git a/core/lib/Drupal/Core/Ajax/RemoveCommand.php b/core/lib/Drupal/Core/Ajax/RemoveCommand.php
index f4e6bbe..5131b20 100644
--- a/core/lib/Drupal/Core/Ajax/RemoveCommand.php
+++ b/core/lib/Drupal/Core/Ajax/RemoveCommand.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
-use Drupal\Core\Ajax\CommandInterface;
-
/**
* AJAX command for calling the jQuery remove() method.
*
diff --git a/core/lib/Drupal/Core/Ajax/ReplaceCommand.php b/core/lib/Drupal/Core/Ajax/ReplaceCommand.php
index b8cc881..615f4eb 100644
--- a/core/lib/Drupal/Core/Ajax/ReplaceCommand.php
+++ b/core/lib/Drupal/Core/Ajax/ReplaceCommand.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
-use Drupal\Core\Ajax\InsertCommand;
-
/**
* AJAX command for calling the jQuery replace() method.
*
diff --git a/core/lib/Drupal/Core/Ajax/RestripeCommand.php b/core/lib/Drupal/Core/Ajax/RestripeCommand.php
index 834e555..711950f 100644
--- a/core/lib/Drupal/Core/Ajax/RestripeCommand.php
+++ b/core/lib/Drupal/Core/Ajax/RestripeCommand.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
-use Drupal\Core\Ajax\CommandInterface;
-
/**
* AJAX command for resetting the striping on a table.
*
diff --git a/core/lib/Drupal/Core/Ajax/SetDialogTitleCommand.php b/core/lib/Drupal/Core/Ajax/SetDialogTitleCommand.php
index 9a2c5ac..d4021cc 100644
--- a/core/lib/Drupal/Core/Ajax/SetDialogTitleCommand.php
+++ b/core/lib/Drupal/Core/Ajax/SetDialogTitleCommand.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
-use Drupal\Core\Ajax\SetDialogOptionCommand;
-
/**
* Defines an AJAX command that sets jQuery UI dialog properties.
*
diff --git a/core/lib/Drupal/Core/Ajax/SettingsCommand.php b/core/lib/Drupal/Core/Ajax/SettingsCommand.php
index e334770..b4ba8cd 100644
--- a/core/lib/Drupal/Core/Ajax/SettingsCommand.php
+++ b/core/lib/Drupal/Core/Ajax/SettingsCommand.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
-use Drupal\Core\Ajax\CommandInterface;
-
/**
* AJAX command for adjusting Drupal's JavaScript settings.
*
diff --git a/core/lib/Drupal/Core/Asset/AssetDumper.php b/core/lib/Drupal/Core/Asset/AssetDumper.php
index cc5c97a..0504fa4 100644
--- a/core/lib/Drupal/Core/Asset/AssetDumper.php
+++ b/core/lib/Drupal/Core/Asset/AssetDumper.php
@@ -7,7 +7,6 @@
namespace Drupal\Core\Asset;
-use Drupal\Core\Asset\AssetDumperInterface;
use Drupal\Component\Utility\Crypt;
/**
diff --git a/core/lib/Drupal/Core/Asset/CssCollectionGrouper.php b/core/lib/Drupal/Core/Asset/CssCollectionGrouper.php
index 0a751e1..6ed0662 100644
--- a/core/lib/Drupal/Core/Asset/CssCollectionGrouper.php
+++ b/core/lib/Drupal/Core/Asset/CssCollectionGrouper.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\Asset;
-use Drupal\Core\Asset\AssetCollectionGrouperInterface;
-
/**
* Groups CSS assets.
*/
diff --git a/core/lib/Drupal/Core/Asset/CssOptimizer.php b/core/lib/Drupal/Core/Asset/CssOptimizer.php
index c85caaf..dc34a23 100644
--- a/core/lib/Drupal/Core/Asset/CssOptimizer.php
+++ b/core/lib/Drupal/Core/Asset/CssOptimizer.php
@@ -7,7 +7,6 @@
namespace Drupal\Core\Asset;
-use Drupal\Core\Asset\AssetOptimizerInterface;
use Drupal\Component\Utility\Unicode;
/**
diff --git a/core/lib/Drupal/Core/Asset/JsCollectionGrouper.php b/core/lib/Drupal/Core/Asset/JsCollectionGrouper.php
index f23cf77..6ea34e4 100644
--- a/core/lib/Drupal/Core/Asset/JsCollectionGrouper.php
+++ b/core/lib/Drupal/Core/Asset/JsCollectionGrouper.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\Asset;
-use Drupal\Core\Asset\AssetCollectionGrouperInterface;
-
/**
* Groups JavaScript assets.
*/
diff --git a/core/lib/Drupal/Core/Asset/JsOptimizer.php b/core/lib/Drupal/Core/Asset/JsOptimizer.php
index 546733c..e07ca99 100644
--- a/core/lib/Drupal/Core/Asset/JsOptimizer.php
+++ b/core/lib/Drupal/Core/Asset/JsOptimizer.php
@@ -7,7 +7,6 @@
namespace Drupal\Core\Asset;
-use Drupal\Core\Asset\AssetOptimizerInterface;
use Drupal\Component\Utility\Unicode;
/**
diff --git a/core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php b/core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php
index 427640f..9d6e796 100644
--- a/core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php
+++ b/core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php
@@ -11,7 +11,6 @@ use Drupal\Core\Asset\Exception\IncompleteLibraryDefinitionException;
use Drupal\Core\Asset\Exception\InvalidLibrariesOverrideSpecificationException;
use Drupal\Core\Asset\Exception\InvalidLibraryFileException;
use Drupal\Core\Asset\Exception\LibraryDefinitionMissingLicenseException;
-use Drupal\Core\Extension\Extension;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Theme\ThemeManagerInterface;
use Drupal\Component\Serialization\Exception\InvalidDataTypeException;
diff --git a/core/lib/Drupal/Core/Cache/CacheFactory.php b/core/lib/Drupal/Core/Cache/CacheFactory.php
index 0a0a977..a8a5c41 100644
--- a/core/lib/Drupal/Core/Cache/CacheFactory.php
+++ b/core/lib/Drupal/Core/Cache/CacheFactory.php
@@ -13,7 +13,6 @@ namespace Drupal\Core\Cache;
use Drupal\Core\Site\Settings;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
-use Symfony\Component\DependencyInjection\ContainerBuilder;
class CacheFactory implements CacheFactoryInterface, ContainerAwareInterface {
diff --git a/core/lib/Drupal/Core/Condition/ConditionPluginBase.php b/core/lib/Drupal/Core/Condition/ConditionPluginBase.php
index 6f6ffc3..5237d0d 100644
--- a/core/lib/Drupal/Core/Condition/ConditionPluginBase.php
+++ b/core/lib/Drupal/Core/Condition/ConditionPluginBase.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\Condition;
-use Drupal\Core\Cache\Cache;
-use Drupal\Core\Cache\CacheableDependencyInterface;
use Drupal\Core\Executable\ExecutableManagerInterface;
use Drupal\Core\Executable\ExecutablePluginBase;
use Drupal\Core\Form\FormStateInterface;
diff --git a/core/lib/Drupal/Core/Config/CachedStorage.php b/core/lib/Drupal/Core/Config/CachedStorage.php
index 590d857..eb9749e 100644
--- a/core/lib/Drupal/Core/Config/CachedStorage.php
+++ b/core/lib/Drupal/Core/Config/CachedStorage.php
@@ -7,7 +7,6 @@
namespace Drupal\Core\Config;
-use Drupal\Core\Cache\Cache;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\DependencyInjection\DependencySerializationTrait;
diff --git a/core/lib/Drupal/Core/Config/ConfigInstaller.php b/core/lib/Drupal/Core/Config/ConfigInstaller.php
index 0cc5d00..7209030 100644
--- a/core/lib/Drupal/Core/Config/ConfigInstaller.php
+++ b/core/lib/Drupal/Core/Config/ConfigInstaller.php
@@ -10,7 +10,6 @@ namespace Drupal\Core\Config;
use Drupal\Component\Utility\Unicode;
use Drupal\Core\Config\Entity\ConfigDependencyManager;
use Drupal\Core\Config\Entity\ConfigEntityDependency;
-use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Site\Settings;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
diff --git a/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php b/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
index 7e5c3a4..0ed5162 100644
--- a/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
+++ b/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
@@ -9,14 +9,12 @@ namespace Drupal\Core\Config\Entity;
use Drupal\Component\Utility\NestedArray;
use Drupal\Core\Cache\Cache;
-use Drupal\Core\Config\ConfigException;
use Drupal\Core\Config\Schema\SchemaIncompleteException;
use Drupal\Core\Entity\Entity;
use Drupal\Core\Config\ConfigDuplicateUUIDException;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Entity\EntityWithPluginCollectionInterface;
-use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Plugin\PluginDependencyTrait;
/**
diff --git a/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorageInterface.php b/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorageInterface.php
index 8bb9e43..55c1193 100644
--- a/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorageInterface.php
+++ b/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorageInterface.php
@@ -7,7 +7,6 @@
namespace Drupal\Core\Config\Entity;
-use Drupal\Core\Config\Config;
use Drupal\Core\Entity\EntityStorageInterface;
/**
diff --git a/core/lib/Drupal/Core/Config/TypedConfigManager.php b/core/lib/Drupal/Core/Config/TypedConfigManager.php
index 625e1ea..ca0eb50 100644
--- a/core/lib/Drupal/Core/Config/TypedConfigManager.php
+++ b/core/lib/Drupal/Core/Config/TypedConfigManager.php
@@ -9,7 +9,6 @@ namespace Drupal\Core\Config;
use Drupal\Component\Utility\NestedArray;
use Drupal\Core\Cache\CacheBackendInterface;
-use Drupal\Core\Config\Schema\ArrayElement;
use Drupal\Core\Config\Schema\ConfigSchemaAlterException;
use Drupal\Core\Config\Schema\ConfigSchemaDiscovery;
use Drupal\Core\Extension\ModuleHandlerInterface;
diff --git a/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php b/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php
index c4d482e..a20e58d 100644
--- a/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php
+++ b/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php
@@ -7,7 +7,6 @@
namespace Drupal\Core\Database\Driver\mysql;
-use Drupal\Core\Database\Database;
use Drupal\Core\Database\Query\Condition;
use Drupal\Core\Database\SchemaException;
use Drupal\Core\Database\SchemaObjectExistsException;
diff --git a/core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php b/core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php
index ff38a22..b5ef45d 100644
--- a/core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php
+++ b/core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php
@@ -10,9 +10,6 @@ namespace Drupal\Core\Database\Driver\pgsql;
use Drupal\Core\Database\Database;
use Drupal\Core\Database\Connection as DatabaseConnection;
use Drupal\Core\Database\DatabaseNotFoundException;
-use Drupal\Core\Database\StatementInterface;
-use Drupal\Core\Database\IntegrityConstraintViolationException;
-use Drupal\Core\Database\DatabaseExceptionWrapper;
/**
* @addtogroup database
diff --git a/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php b/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php
index 0828d59..cd22b94 100644
--- a/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php
+++ b/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php
@@ -8,8 +8,6 @@
namespace Drupal\Core\Database\Driver\pgsql;
use Drupal\Component\Utility\Unicode;
-use Drupal\Core\Database\Database;
-use Drupal\Core\Database\Query\Condition;
use Drupal\Core\Database\SchemaObjectExistsException;
use Drupal\Core\Database\SchemaObjectDoesNotExistException;
use Drupal\Core\Database\Schema as DatabaseSchema;
diff --git a/core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php b/core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php
index bc5c533..95cdf53 100644
--- a/core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php
+++ b/core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php
@@ -8,8 +8,6 @@
namespace Drupal\Core\Database\Query;
use Drupal\Core\Database\Connection;
-use Drupal\Core\Database\Query\SelectExtender;
-use Drupal\Core\Database\Query\SelectInterface;
/**
* Query extender for pager queries.
diff --git a/core/lib/Drupal/Core/Database/Schema.php b/core/lib/Drupal/Core/Database/Schema.php
index f064156..8b6fa57 100644
--- a/core/lib/Drupal/Core/Database/Schema.php
+++ b/core/lib/Drupal/Core/Database/Schema.php
@@ -7,7 +7,6 @@
namespace Drupal\Core\Database;
-use Drupal\Core\Database\SchemaObjectExistsException;
use Drupal\Core\Database\Query\Condition;
use Drupal\Core\Database\Query\PlaceholderInterface;
diff --git a/core/lib/Drupal/Core/Datetime/DateFormatInterface.php b/core/lib/Drupal/Core/Datetime/DateFormatInterface.php
index 162ec3b..810af6d 100644
--- a/core/lib/Drupal/Core/Datetime/DateFormatInterface.php
+++ b/core/lib/Drupal/Core/Datetime/DateFormatInterface.php
@@ -8,7 +8,6 @@
namespace Drupal\Core\Datetime;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
-use Drupal\Core\Datetime\DrupalDateTime;
/**
* Provides an interface defining a date format.
diff --git a/core/lib/Drupal/Core/Datetime/DateFormatter.php b/core/lib/Drupal/Core/Datetime/DateFormatter.php
index be23303..d288fee 100644
--- a/core/lib/Drupal/Core/Datetime/DateFormatter.php
+++ b/core/lib/Drupal/Core/Datetime/DateFormatter.php
@@ -8,7 +8,6 @@
namespace Drupal\Core\Datetime;
use Drupal\Core\Config\ConfigFactoryInterface;
-use Drupal\Core\Datetime\DrupalDateTime;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Language\Language;
use Drupal\Core\Language\LanguageManagerInterface;
diff --git a/core/lib/Drupal/Core/Datetime/DateHelper.php b/core/lib/Drupal/Core/Datetime/DateHelper.php
index 9cdd1f1..4ab4776 100644
--- a/core/lib/Drupal/Core/Datetime/DateHelper.php
+++ b/core/lib/Drupal/Core/Datetime/DateHelper.php
@@ -16,8 +16,6 @@
*/
namespace Drupal\Core\Datetime;
-use Drupal\Core\Datetime\DrupalDateTime;
-
/**
* Defines Gregorian Calendar date values.
*/
diff --git a/core/lib/Drupal/Core/DependencyInjection/Compiler/ProxyServicesPass.php b/core/lib/Drupal/Core/DependencyInjection/Compiler/ProxyServicesPass.php
index 90b1755..ac424ab 100644
--- a/core/lib/Drupal/Core/DependencyInjection/Compiler/ProxyServicesPass.php
+++ b/core/lib/Drupal/Core/DependencyInjection/Compiler/ProxyServicesPass.php
@@ -10,8 +10,6 @@ namespace Drupal\Core\DependencyInjection\Compiler;
use Drupal\Component\ProxyBuilder\ProxyBuilder;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
-use Symfony\Component\DependencyInjection\Definition;
-use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
use Symfony\Component\DependencyInjection\Reference;
/**
diff --git a/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterStreamWrappersPass.php b/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterStreamWrappersPass.php
index 4659cb0..b46ae2d 100644
--- a/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterStreamWrappersPass.php
+++ b/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterStreamWrappersPass.php
@@ -7,10 +7,8 @@
namespace Drupal\Core\DependencyInjection\Compiler;
-use Drupal\Core\StreamWrapper\StreamWrapperInterface;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
-use Symfony\Component\DependencyInjection\Reference;
/**
* Adds services tagged 'stream_wrapper' to the stream_wrapper_manager service.
diff --git a/core/lib/Drupal/Core/DrupalKernel.php b/core/lib/Drupal/Core/DrupalKernel.php
index 16b3bac..0c16cb3 100644
--- a/core/lib/Drupal/Core/DrupalKernel.php
+++ b/core/lib/Drupal/Core/DrupalKernel.php
@@ -22,14 +22,12 @@ use Drupal\Core\Extension\ExtensionDiscovery;
use Drupal\Core\File\MimeType\MimeTypeGuesser;
use Drupal\Core\Http\TrustedHostsRequestFactory;
use Drupal\Core\Language\Language;
-use Drupal\Core\PageCache\RequestPolicyInterface;
use Drupal\Core\Site\Settings;
use Symfony\Cmf\Component\Routing\RouteObjectInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
-use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
diff --git a/core/lib/Drupal/Core/Entity/Controller/EntityListController.php b/core/lib/Drupal/Core/Entity/Controller/EntityListController.php
index 1b081bb..1c7e746 100644
--- a/core/lib/Drupal/Core/Entity/Controller/EntityListController.php
+++ b/core/lib/Drupal/Core/Entity/Controller/EntityListController.php
@@ -8,7 +8,6 @@
namespace Drupal\Core\Entity\Controller;
use Drupal\Core\Controller\ControllerBase;
-use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Defines a generic controller to list entities.
diff --git a/core/lib/Drupal/Core/Entity/Entity.php b/core/lib/Drupal/Core/Entity/Entity.php
index 74ce4e7..fa1f8ad 100644
--- a/core/lib/Drupal/Core/Entity/Entity.php
+++ b/core/lib/Drupal/Core/Entity/Entity.php
@@ -10,7 +10,6 @@ namespace Drupal\Core\Entity;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Cache\RefinableCacheableDependencyTrait;
use Drupal\Core\DependencyInjection\DependencySerializationTrait;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Component\Utility\Unicode;
use Drupal\Core\Config\Entity\Exception\ConfigEntityIdLengthException;
use Drupal\Core\Entity\Exception\UndefinedLinkTemplateException;
diff --git a/core/lib/Drupal/Core/Entity/EntityConfirmFormBase.php b/core/lib/Drupal/Core/Entity/EntityConfirmFormBase.php
index 7b320e1..75e4ae8 100644
--- a/core/lib/Drupal/Core/Entity/EntityConfirmFormBase.php
+++ b/core/lib/Drupal/Core/Entity/EntityConfirmFormBase.php
@@ -10,7 +10,6 @@ namespace Drupal\Core\Entity;
use Drupal\Core\Form\ConfirmFormHelper;
use Drupal\Core\Form\ConfirmFormInterface;
use Drupal\Core\Form\FormStateInterface;
-use Symfony\Component\HttpFoundation\Request;
/**
* Provides a generic base class for an entity-based confirmation form.
diff --git a/core/lib/Drupal/Core/Entity/EntityListBuilder.php b/core/lib/Drupal/Core/Entity/EntityListBuilder.php
index 5cb89f7..3e2d351 100644
--- a/core/lib/Drupal/Core/Entity/EntityListBuilder.php
+++ b/core/lib/Drupal/Core/Entity/EntityListBuilder.php
@@ -7,7 +7,6 @@
namespace Drupal\Core\Entity;
-use Drupal\Core\Extension\ModuleHandlerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
diff --git a/core/lib/Drupal/Core/Entity/EntityManager.php b/core/lib/Drupal/Core/Entity/EntityManager.php
index da4fec0..1bd7685 100644
--- a/core/lib/Drupal/Core/Entity/EntityManager.php
+++ b/core/lib/Drupal/Core/Entity/EntityManager.php
@@ -24,7 +24,6 @@ use Drupal\Core\Field\FieldStorageDefinitionEvents;
use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\Core\Field\FieldStorageDefinitionListenerInterface;
use Drupal\Core\KeyValueStore\KeyValueFactoryInterface;
-use Drupal\Core\KeyValueStore\KeyValueStoreInterface;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Language\LanguageManagerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
diff --git a/core/lib/Drupal/Core/Entity/Query/Sql/QueryFactory.php b/core/lib/Drupal/Core/Entity/Query/Sql/QueryFactory.php
index 4b7de43..e233e2f 100644
--- a/core/lib/Drupal/Core/Entity/Query/Sql/QueryFactory.php
+++ b/core/lib/Drupal/Core/Entity/Query/Sql/QueryFactory.php
@@ -8,7 +8,6 @@
namespace Drupal\Core\Entity\Query\Sql;
use Drupal\Core\Database\Connection;
-use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Entity\Query\QueryBase;
use Drupal\Core\Entity\Query\QueryFactoryInterface;
diff --git a/core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php b/core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php
index d2da0fd..0d8d9da 100644
--- a/core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php
+++ b/core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php
@@ -12,9 +12,7 @@ use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Language\LanguageManagerInterface;
use Drupal\Core\Path\CurrentPathStack;
use Drupal\Core\Path\PathMatcherInterface;
-use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Session\AccountInterface;
-use Drupal\Core\Url;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
use Symfony\Component\HttpKernel\KernelEvents;
diff --git a/core/lib/Drupal/Core/EventSubscriber/AnonymousUserResponseSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/AnonymousUserResponseSubscriber.php
index f73437a..1efc717 100644
--- a/core/lib/Drupal/Core/EventSubscriber/AnonymousUserResponseSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/AnonymousUserResponseSubscriber.php
@@ -11,7 +11,6 @@ use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Cache\CacheableResponseInterface;
use Drupal\Core\Session\AccountInterface;
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
-use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
diff --git a/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php
index 0acda56..da6327d 100644
--- a/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php
@@ -15,7 +15,6 @@ use Drupal\Core\Render\AttachmentsInterface;
use Drupal\Core\Render\BubbleableMetadata;
use Drupal\Core\Render\RenderContext;
use Drupal\Core\Render\RendererInterface;
-use Drupal\Core\Routing\RouteMatchInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Event\FilterControllerEvent;
use Symfony\Component\HttpKernel\KernelEvents;
diff --git a/core/lib/Drupal/Core/EventSubscriber/FinishResponseSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/FinishResponseSubscriber.php
index f7d513b..b625f59 100644
--- a/core/lib/Drupal/Core/EventSubscriber/FinishResponseSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/FinishResponseSubscriber.php
@@ -10,19 +10,15 @@ namespace Drupal\Core\EventSubscriber;
use Drupal\Component\Datetime\DateTimePlus;
use Drupal\Core\Cache\CacheableResponseInterface;
use Drupal\Core\Cache\Context\CacheContextsManager;
-use Drupal\Core\Config\Config;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Language\LanguageManagerInterface;
use Drupal\Core\PageCache\RequestPolicyInterface;
use Drupal\Core\PageCache\ResponsePolicyInterface;
use Drupal\Core\Site\Settings;
-use Symfony\Component\HttpFoundation\BinaryFileResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
-use Symfony\Component\HttpFoundation\StreamedResponse;
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
use Symfony\Component\HttpKernel\KernelEvents;
-use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
/**
diff --git a/core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php
index 8d96767..7b2cc7c 100644
--- a/core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php
@@ -11,7 +11,6 @@ use Drupal\Core\State\StateInterface;
use Drupal\Core\Routing\RouteBuildEvent;
use Drupal\Core\Routing\RoutingEvents;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
-use Symfony\Component\Routing\RouteCollection;
/**
* Provides all available first bits of all route paths.
diff --git a/core/lib/Drupal/Core/EventSubscriber/RouterRebuildSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/RouterRebuildSubscriber.php
index 584b141..9ada39c 100644
--- a/core/lib/Drupal/Core/EventSubscriber/RouterRebuildSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/RouterRebuildSubscriber.php
@@ -7,11 +7,7 @@
namespace Drupal\Core\EventSubscriber;
-use Drupal\Core\Cache\Cache;
-use Drupal\Core\Lock\LockBackendInterface;
use Drupal\Core\Routing\RouteBuilderInterface;
-use Drupal\Core\Routing\RoutingEvents;
-use Symfony\Component\EventDispatcher\Event;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Event\PostResponseEvent;
use Symfony\Component\HttpKernel\KernelEvents;
diff --git a/core/lib/Drupal/Core/Executable/ExecutablePluginBase.php b/core/lib/Drupal/Core/Executable/ExecutablePluginBase.php
index c438e1d..ac07572 100644
--- a/core/lib/Drupal/Core/Executable/ExecutablePluginBase.php
+++ b/core/lib/Drupal/Core/Executable/ExecutablePluginBase.php
@@ -8,7 +8,6 @@
namespace Drupal\Core\Executable;
use Drupal\Core\Plugin\ContextAwarePluginBase;
-use Symfony\Component\Validator\Validation;
use Drupal\Component\Plugin\Exception\PluginException;
/**
diff --git a/core/lib/Drupal/Core/Extension/ModuleHandler.php b/core/lib/Drupal/Core/Extension/ModuleHandler.php
index f97897c..b9a9a3e 100644
--- a/core/lib/Drupal/Core/Extension/ModuleHandler.php
+++ b/core/lib/Drupal/Core/Extension/ModuleHandler.php
@@ -9,7 +9,6 @@ namespace Drupal\Core\Extension;
use Drupal\Component\Graph\Graph;
use Drupal\Component\Utility\NestedArray;
-use Drupal\Core\Cache\Cache;
use Drupal\Core\Cache\CacheBackendInterface;
/**
diff --git a/core/lib/Drupal/Core/Extension/module.api.php b/core/lib/Drupal/Core/Extension/module.api.php
index 414e517..7d13f74 100644
--- a/core/lib/Drupal/Core/Extension/module.api.php
+++ b/core/lib/Drupal/Core/Extension/module.api.php
@@ -6,7 +6,6 @@
*/
use Drupal\Core\Database\Database;
-use Drupal\Core\Field\BaseFieldDefinition;
use Drupal\Core\Url;
use Drupal\Core\Utility\UpdateException;
diff --git a/core/lib/Drupal/Core/Field/FieldConfigBase.php b/core/lib/Drupal/Core/Field/FieldConfigBase.php
index e3728be..87a5c91 100644
--- a/core/lib/Drupal/Core/Field/FieldConfigBase.php
+++ b/core/lib/Drupal/Core/Field/FieldConfigBase.php
@@ -7,7 +7,6 @@
namespace Drupal\Core\Field;
-use Drupal\Component\Plugin\DependentPluginInterface;
use Drupal\Core\Config\Entity\ConfigEntityBase;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Entity\FieldableEntityInterface;
diff --git a/core/lib/Drupal/Core/Field/FieldFilteredMarkup.php b/core/lib/Drupal/Core/Field/FieldFilteredMarkup.php
index 78900a9..8dcadca 100644
--- a/core/lib/Drupal/Core/Field/FieldFilteredMarkup.php
+++ b/core/lib/Drupal/Core/Field/FieldFilteredMarkup.php
@@ -10,7 +10,6 @@ namespace Drupal\Core\Field;
use Drupal\Component\Utility\Html;
use Drupal\Component\Render\MarkupInterface;
use Drupal\Component\Render\MarkupTrait;
-use Drupal\Component\Utility\Unicode;
use Drupal\Component\Utility\Xss;
/**
diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceEntityFormatter.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceEntityFormatter.php
index b98fc45..8a4a602 100644
--- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceEntityFormatter.php
+++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceEntityFormatter.php
@@ -10,7 +10,6 @@ namespace Drupal\Core\Field\Plugin\Field\FieldFormatter;
use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Logger\LoggerChannelFactoryInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceIdFormatter.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceIdFormatter.php
index 3b58c68..2cf8c20 100644
--- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceIdFormatter.php
+++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceIdFormatter.php
@@ -8,7 +8,6 @@
namespace Drupal\Core\Field\Plugin\Field\FieldFormatter;
use Drupal\Core\Field\FieldItemListInterface;
-use Drupal\Core\Language\LanguageInterface;
/**
* Plugin implementation of the 'entity reference ID' formatter.
diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/MapItem.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/MapItem.php
index 5ccc6d2..cd48878 100644
--- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/MapItem.php
+++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/MapItem.php
@@ -9,7 +9,6 @@ namespace Drupal\Core\Field\Plugin\Field\FieldType;
use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\Core\Field\FieldItemBase;
-use Drupal\Core\TypedData\DataDefinition;
/**
* Defines the 'map' entity field type.
diff --git a/core/lib/Drupal/Core/Form/ConfigFormBase.php b/core/lib/Drupal/Core/Form/ConfigFormBase.php
index 5ed650a..ee50389 100644
--- a/core/lib/Drupal/Core/Form/ConfigFormBase.php
+++ b/core/lib/Drupal/Core/Form/ConfigFormBase.php
@@ -8,7 +8,6 @@
namespace Drupal\Core\Form;
use Drupal\Core\Config\ConfigFactoryInterface;
-use Drupal\Core\Form\FormBase;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
diff --git a/core/lib/Drupal/Core/Form/FormCache.php b/core/lib/Drupal/Core/Form/FormCache.php
index b091ed8..63273d6 100644
--- a/core/lib/Drupal/Core/Form/FormCache.php
+++ b/core/lib/Drupal/Core/Form/FormCache.php
@@ -8,7 +8,6 @@
namespace Drupal\Core\Form;
use Drupal\Component\Utility\Crypt;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Access\CsrfTokenGenerator;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\KeyValueStore\KeyValueExpirableFactoryInterface;
diff --git a/core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php b/core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php
index 4481af3..eab55c1 100644
--- a/core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php
+++ b/core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php
@@ -10,7 +10,6 @@ namespace Drupal\Core\ImageToolkit;
use Drupal\Component\Plugin\Exception\PluginNotFoundException;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Image\ImageInterface;
use Drupal\Core\Plugin\PluginBase;
use Psr\Log\LoggerInterface;
diff --git a/core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php b/core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php
index 1cf350e..c7b064c 100644
--- a/core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php
+++ b/core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php
@@ -9,7 +9,6 @@ namespace Drupal\Core\ImageToolkit;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Plugin\PluginFormInterface;
-use Drupal\Core\Image\ImageInterface;
use Drupal\Component\Plugin\PluginInspectionInterface;
/**
diff --git a/core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseExpirableFactory.php b/core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseExpirableFactory.php
index ff9fb14..583bcf0 100644
--- a/core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseExpirableFactory.php
+++ b/core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseExpirableFactory.php
@@ -8,7 +8,6 @@
namespace Drupal\Core\KeyValueStore;
use Drupal\Component\Serialization\SerializationInterface;
-use Drupal\Core\DestructableInterface;
use Drupal\Core\Database\Connection;
/**
diff --git a/core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseFactory.php b/core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseFactory.php
index fda143d..a35d979 100644
--- a/core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseFactory.php
+++ b/core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseFactory.php
@@ -9,7 +9,6 @@ namespace Drupal\Core\KeyValueStore;
use Drupal\Component\Serialization\SerializationInterface;
use Drupal\Core\Database\Connection;
-use Drupal\Core\Database\Database;
/**
* Defines the key/value store factory for the database backend.
diff --git a/core/lib/Drupal/Core/KeyValueStore/KeyValueExpirableFactory.php b/core/lib/Drupal/Core/KeyValueStore/KeyValueExpirableFactory.php
index 0c7b0a5..50eafe7 100644
--- a/core/lib/Drupal/Core/KeyValueStore/KeyValueExpirableFactory.php
+++ b/core/lib/Drupal/Core/KeyValueStore/KeyValueExpirableFactory.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\KeyValueStore;
-use Symfony\Component\DependencyInjection\ContainerInterface;
-
/**
* Defines the key/value store factory.
*/
diff --git a/core/lib/Drupal/Core/Language/LanguageManagerInterface.php b/core/lib/Drupal/Core/Language/LanguageManagerInterface.php
index 950fc69..ef5fcbd 100644
--- a/core/lib/Drupal/Core/Language/LanguageManagerInterface.php
+++ b/core/lib/Drupal/Core/Language/LanguageManagerInterface.php
@@ -7,7 +7,6 @@
namespace Drupal\Core\Language;
-use Drupal\Core\StringTranslation\TranslationInterface;
use Drupal\Core\Url;
/**
diff --git a/core/lib/Drupal/Core/Menu/MenuLinkTree.php b/core/lib/Drupal/Core/Menu/MenuLinkTree.php
index 6307c49..5b3aee8 100644
--- a/core/lib/Drupal/Core/Menu/MenuLinkTree.php
+++ b/core/lib/Drupal/Core/Menu/MenuLinkTree.php
@@ -10,9 +10,7 @@ namespace Drupal\Core\Menu;
use Drupal\Component\Utility\NestedArray;
use Drupal\Core\Access\AccessResultInterface;
use Drupal\Core\Cache\CacheableMetadata;
-use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Controller\ControllerResolverInterface;
-use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Routing\RouteProviderInterface;
use Drupal\Core\Template\Attribute;
diff --git a/core/lib/Drupal/Core/Menu/Plugin/Block/LocalActionsBlock.php b/core/lib/Drupal/Core/Menu/Plugin/Block/LocalActionsBlock.php
index 7b1dc3a..42a79fc 100644
--- a/core/lib/Drupal/Core/Menu/Plugin/Block/LocalActionsBlock.php
+++ b/core/lib/Drupal/Core/Menu/Plugin/Block/LocalActionsBlock.php
@@ -8,7 +8,6 @@
namespace Drupal\Core\Menu\Plugin\Block;
use Drupal\Core\Block\BlockBase;
-use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Menu\LocalActionManagerInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
diff --git a/core/lib/Drupal/Core/ParamConverter/ParamConverterManager.php b/core/lib/Drupal/Core/ParamConverter/ParamConverterManager.php
index 997749f..1c515d2 100644
--- a/core/lib/Drupal/Core/ParamConverter/ParamConverterManager.php
+++ b/core/lib/Drupal/Core/ParamConverter/ParamConverterManager.php
@@ -7,8 +7,6 @@
namespace Drupal\Core\ParamConverter;
-use Symfony\Component\DependencyInjection\ContainerAwareInterface;
-use Symfony\Component\DependencyInjection\ContainerAwareTrait;
use Symfony\Cmf\Component\Routing\RouteObjectInterface;
use Symfony\Component\Routing\RouteCollection;
diff --git a/core/lib/Drupal/Core/Path/AliasWhitelist.php b/core/lib/Drupal/Core/Path/AliasWhitelist.php
index fc26b77..dff0c9d 100644
--- a/core/lib/Drupal/Core/Path/AliasWhitelist.php
+++ b/core/lib/Drupal/Core/Path/AliasWhitelist.php
@@ -9,7 +9,6 @@ namespace Drupal\Core\Path;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Cache\CacheCollector;
-use Drupal\Core\Database\Connection;
use Drupal\Core\State\StateInterface;
use Drupal\Core\Lock\LockBackendInterface;
diff --git a/core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php b/core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php
index 2001eea..7275a0e 100644
--- a/core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php
+++ b/core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php
@@ -8,8 +8,6 @@
namespace Drupal\Core\Plugin;
use Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface;
-use Drupal\Component\Plugin\Exception\PluginException;
-use Drupal\Component\Plugin\PluginManagerInterface;
/**
* Defines a class which is capable of clearing the cache on plugin managers.
diff --git a/core/lib/Drupal/Core/Render/Element/Link.php b/core/lib/Drupal/Core/Render/Element/Link.php
index baa279e..8f908d2 100644
--- a/core/lib/Drupal/Core/Render/Element/Link.php
+++ b/core/lib/Drupal/Core/Render/Element/Link.php
@@ -9,7 +9,6 @@ namespace Drupal\Core\Render\Element;
use Drupal\Component\Utility\NestedArray;
use Drupal\Component\Utility\Html as HtmlUtility;
-use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Render\BubbleableMetadata;
use Drupal\Core\Url as CoreUrl;
diff --git a/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php b/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php
index b9cbc81..e0160d1 100644
--- a/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php
+++ b/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php
@@ -12,9 +12,7 @@ use Drupal\Core\Asset\AttachedAssets;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Form\EnforcedResponseException;
use Drupal\Core\Extension\ModuleHandlerInterface;
-use Drupal\Core\Render\BubbleableMetadata;
use Drupal\Component\Utility\Html;
-use Drupal\Component\Utility\SafeMarkup;
use Symfony\Component\HttpFoundation\RequestStack;
/**
diff --git a/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php b/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php
index 4a4ab59..7670876 100644
--- a/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php
+++ b/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php
@@ -13,7 +13,6 @@ use Drupal\Core\Controller\TitleResolverInterface;
use Drupal\Core\Display\PageVariantInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Display\ContextAwareVariantInterface;
-use Drupal\Core\Render\BubbleableMetadata;
use Drupal\Core\Render\HtmlResponse;
use Drupal\Core\Render\PageDisplayVariantSelectionEvent;
use Drupal\Core\Render\RenderCacheInterface;
diff --git a/core/lib/Drupal/Core/Render/MainContent/ModalRenderer.php b/core/lib/Drupal/Core/Render/MainContent/ModalRenderer.php
index 945a76c..8f2ef17 100644
--- a/core/lib/Drupal/Core/Render/MainContent/ModalRenderer.php
+++ b/core/lib/Drupal/Core/Render/MainContent/ModalRenderer.php
@@ -9,7 +9,6 @@ namespace Drupal\Core\Render\MainContent;
use Drupal\Core\Ajax\AjaxResponse;
use Drupal\Core\Ajax\OpenModalDialogCommand;
-use Drupal\Core\Render\MainContent\DialogRenderer;
use Drupal\Core\Routing\RouteMatchInterface;
use Symfony\Component\HttpFoundation\Request;
diff --git a/core/lib/Drupal/Core/RouteProcessor/RouteProcessorCurrent.php b/core/lib/Drupal/Core/RouteProcessor/RouteProcessorCurrent.php
index 0dbfcaa..11299af 100644
--- a/core/lib/Drupal/Core/RouteProcessor/RouteProcessorCurrent.php
+++ b/core/lib/Drupal/Core/RouteProcessor/RouteProcessorCurrent.php
@@ -7,7 +7,6 @@
namespace Drupal\Core\RouteProcessor;
-use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Render\BubbleableMetadata;
use Drupal\Core\Routing\RouteMatchInterface;
use Symfony\Component\Routing\Route;
diff --git a/core/lib/Drupal/Core/Routing/LinkGeneratorTrait.php b/core/lib/Drupal/Core/Routing/LinkGeneratorTrait.php
index 1dcb343..dc2c9de 100644
--- a/core/lib/Drupal/Core/Routing/LinkGeneratorTrait.php
+++ b/core/lib/Drupal/Core/Routing/LinkGeneratorTrait.php
@@ -10,7 +10,6 @@ namespace Drupal\Core\Routing;
use Drupal\Core\Url;
use Drupal\Core\Utility\LinkGeneratorInterface;
-use Drupal\Core\Routing\UrlGeneratorInterface;
/**
* Wrapper methods for the Link Generator.
diff --git a/core/lib/Drupal/Core/Routing/RouteProvider.php b/core/lib/Drupal/Core/Routing/RouteProvider.php
index 58b8320..937cff7 100644
--- a/core/lib/Drupal/Core/Routing/RouteProvider.php
+++ b/core/lib/Drupal/Core/Routing/RouteProvider.php
@@ -19,8 +19,6 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Exception\RouteNotFoundException;
use Symfony\Component\Routing\RouteCollection;
-use Symfony\Component\Routing\Exception\ResourceNotFoundException;
-
use \Drupal\Core\Database\Connection;
/**
diff --git a/core/lib/Drupal/Core/Routing/RouteProviderInterface.php b/core/lib/Drupal/Core/Routing/RouteProviderInterface.php
index 8c8e356..03dcb04 100644
--- a/core/lib/Drupal/Core/Routing/RouteProviderInterface.php
+++ b/core/lib/Drupal/Core/Routing/RouteProviderInterface.php
@@ -8,7 +8,6 @@
namespace Drupal\Core\Routing;
use Symfony\Cmf\Component\Routing\RouteProviderInterface as RouteProviderBaseInterface;
-use Symfony\Component\Routing\RouteCollection;
/**
* Extends the router provider interface
diff --git a/core/lib/Drupal/Core/Routing/RouteSubscriberBase.php b/core/lib/Drupal/Core/Routing/RouteSubscriberBase.php
index 757c8c1..f26a2e8 100644
--- a/core/lib/Drupal/Core/Routing/RouteSubscriberBase.php
+++ b/core/lib/Drupal/Core/Routing/RouteSubscriberBase.php
@@ -7,7 +7,6 @@
namespace Drupal\Core\Routing;
-use Drupal\Core\Routing\RoutingEvents;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Routing\RouteCollection;
diff --git a/core/lib/Drupal/Core/Routing/UrlGenerator.php b/core/lib/Drupal/Core/Routing/UrlGenerator.php
index cf6607a..f3d1275 100644
--- a/core/lib/Drupal/Core/Routing/UrlGenerator.php
+++ b/core/lib/Drupal/Core/Routing/UrlGenerator.php
@@ -14,7 +14,6 @@ use Symfony\Component\Routing\RequestContext as SymfonyRequestContext;
use Symfony\Component\Routing\Route as SymfonyRoute;
use Symfony\Component\Routing\Exception\RouteNotFoundException;
use Drupal\Component\Utility\UrlHelper;
-use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\PathProcessor\OutboundPathProcessorInterface;
use Drupal\Core\RouteProcessor\OutboundRouteProcessorInterface;
use Symfony\Component\Routing\Exception\InvalidParameterException;
diff --git a/core/lib/Drupal/Core/Session/PermissionsHashGenerator.php b/core/lib/Drupal/Core/Session/PermissionsHashGenerator.php
index f9da69dd..aaf4468 100644
--- a/core/lib/Drupal/Core/Session/PermissionsHashGenerator.php
+++ b/core/lib/Drupal/Core/Session/PermissionsHashGenerator.php
@@ -11,7 +11,6 @@ use Drupal\Core\PrivateKey;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Site\Settings;
-use Drupal\user\Entity\Role;
/**
* Generates and caches the permissions hash for a user.
diff --git a/core/lib/Drupal/Core/StringTranslation/TranslationManager.php b/core/lib/Drupal/Core/StringTranslation/TranslationManager.php
index 7ccf5a3..9d3966b 100644
--- a/core/lib/Drupal/Core/StringTranslation/TranslationManager.php
+++ b/core/lib/Drupal/Core/StringTranslation/TranslationManager.php
@@ -7,7 +7,6 @@
namespace Drupal\Core\StringTranslation;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Language\LanguageDefault;
use Drupal\Core\StringTranslation\Translator\TranslatorInterface;
diff --git a/core/lib/Drupal/Core/Template/TwigEnvironment.php b/core/lib/Drupal/Core/Template/TwigEnvironment.php
index 8d3feaa..eb4f8e5 100644
--- a/core/lib/Drupal/Core/Template/TwigEnvironment.php
+++ b/core/lib/Drupal/Core/Template/TwigEnvironment.php
@@ -7,7 +7,6 @@
namespace Drupal\Core\Template;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Render\Markup;
diff --git a/core/lib/Drupal/Core/Template/TwigNodeTrans.php b/core/lib/Drupal/Core/Template/TwigNodeTrans.php
index 757b94b..6bd4b8a 100644
--- a/core/lib/Drupal/Core/Template/TwigNodeTrans.php
+++ b/core/lib/Drupal/Core/Template/TwigNodeTrans.php
@@ -14,9 +14,6 @@
namespace Drupal\Core\Template;
-use Drupal\Component\Utility\Unicode;
-use Drupal\Core\Site\Settings;
-
/**
* A class that defines the Twig 'trans' tag for Drupal.
*/
diff --git a/core/lib/Drupal/Core/Test/TestRunnerKernel.php b/core/lib/Drupal/Core/Test/TestRunnerKernel.php
index f19afb3..9928797 100644
--- a/core/lib/Drupal/Core/Test/TestRunnerKernel.php
+++ b/core/lib/Drupal/Core/Test/TestRunnerKernel.php
@@ -9,7 +9,6 @@ namespace Drupal\Core\Test;
use Drupal\Core\DrupalKernel;
use Drupal\Core\Extension\Extension;
-use Drupal\Core\Installer\InstallerServiceProvider;
use Composer\Autoload\ClassLoader;
use Drupal\Core\Site\Settings;
use Symfony\Component\HttpFoundation\Request;
diff --git a/core/lib/Drupal/Core/TypedData/Plugin/DataType/BinaryData.php b/core/lib/Drupal/Core/TypedData/Plugin/DataType/BinaryData.php
index a18c7d5..7cc76cb 100644
--- a/core/lib/Drupal/Core/TypedData/Plugin/DataType/BinaryData.php
+++ b/core/lib/Drupal/Core/TypedData/Plugin/DataType/BinaryData.php
@@ -9,7 +9,6 @@ namespace Drupal\Core\TypedData\Plugin\DataType;
use Drupal\Core\TypedData\PrimitiveBase;
use Drupal\Core\TypedData\Type\BinaryInterface;
-use Drupal\Core\TypedData\TypedData;
/**
* The binary data type.
diff --git a/core/lib/Drupal/Core/TypedData/Plugin/DataType/Uri.php b/core/lib/Drupal/Core/TypedData/Plugin/DataType/Uri.php
index ac3d48d..3fa1688 100644
--- a/core/lib/Drupal/Core/TypedData/Plugin/DataType/Uri.php
+++ b/core/lib/Drupal/Core/TypedData/Plugin/DataType/Uri.php
@@ -7,9 +7,7 @@
namespace Drupal\Core\TypedData\Plugin\DataType;
-use Drupal\Core\TypedData\PrimitiveBase;
use Drupal\Core\TypedData\Type\UriInterface;
-use Drupal\Core\TypedData\TypedData;
/**
* The URI data type.
diff --git a/core/lib/Drupal/Core/Utility/LinkGenerator.php b/core/lib/Drupal/Core/Utility/LinkGenerator.php
index 8b453f7..70af473 100644
--- a/core/lib/Drupal/Core/Utility/LinkGenerator.php
+++ b/core/lib/Drupal/Core/Utility/LinkGenerator.php
@@ -14,7 +14,6 @@ use Drupal\Component\Render\MarkupInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\GeneratedLink;
use Drupal\Core\Link;
-use Drupal\Core\Path\AliasManagerInterface;
use Drupal\Core\Render\RendererInterface;
use Drupal\Core\Routing\UrlGeneratorInterface;
use Drupal\Core\Template\Attribute;
diff --git a/core/lib/Drupal/Core/Utility/Token.php b/core/lib/Drupal/Core/Utility/Token.php
index 688731a..8d98232 100644
--- a/core/lib/Drupal/Core/Utility/Token.php
+++ b/core/lib/Drupal/Core/Utility/Token.php
@@ -9,7 +9,6 @@ namespace Drupal\Core\Utility;
use Drupal\Component\Render\HtmlEscapedText;
use Drupal\Component\Render\MarkupInterface;
-use Drupal\Core\Cache\Cache;
use Drupal\Core\Cache\CacheableDependencyInterface;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Cache\CacheTagsInvalidatorInterface;
diff --git a/core/lib/Drupal/Core/Utility/UnroutedUrlAssembler.php b/core/lib/Drupal/Core/Utility/UnroutedUrlAssembler.php
index 8179563..dc1c237 100644
--- a/core/lib/Drupal/Core/Utility/UnroutedUrlAssembler.php
+++ b/core/lib/Drupal/Core/Utility/UnroutedUrlAssembler.php
@@ -8,7 +8,6 @@
namespace Drupal\Core\Utility;
use Drupal\Component\Utility\UrlHelper;
-use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\GeneratedUrl;
use Drupal\Core\PathProcessor\OutboundPathProcessorInterface;
use Symfony\Component\HttpFoundation\RequestStack;
diff --git a/core/modules/action/action.views_execution.inc b/core/modules/action/action.views_execution.inc
index db7fef5..5b4f71f 100644
--- a/core/modules/action/action.views_execution.inc
+++ b/core/modules/action/action.views_execution.inc
@@ -5,8 +5,6 @@
* Provides views runtime hooks for action.module.
*/
-use Drupal\Component\Utility\SafeMarkup;
-
/**
* Implements hook_views_form_substitutions().
*/
diff --git a/core/modules/aggregator/aggregator.install b/core/modules/aggregator/aggregator.install
index 88812c4..ad5f92f 100644
--- a/core/modules/aggregator/aggregator.install
+++ b/core/modules/aggregator/aggregator.install
@@ -4,7 +4,6 @@
* @file
* Install, update and uninstall functions for the aggregator module.
*/
-use Drupal\Core\Language\Language;
/**
* Implements hook_requirements().
diff --git a/core/modules/aggregator/src/Controller/AggregatorController.php b/core/modules/aggregator/src/Controller/AggregatorController.php
index 70c6697..c656838 100644
--- a/core/modules/aggregator/src/Controller/AggregatorController.php
+++ b/core/modules/aggregator/src/Controller/AggregatorController.php
@@ -12,8 +12,6 @@ use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Datetime\DateFormatterInterface;
use Drupal\aggregator\FeedInterface;
use Drupal\Core\Url;
-use Symfony\Component\HttpFoundation\Request;
-use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
diff --git a/core/modules/aggregator/src/Entity/Feed.php b/core/modules/aggregator/src/Entity/Feed.php
index a78d853..68494e1 100644
--- a/core/modules/aggregator/src/Entity/Feed.php
+++ b/core/modules/aggregator/src/Entity/Feed.php
@@ -10,7 +10,6 @@ namespace Drupal\aggregator\Entity;
use Drupal\Core\Entity\ContentEntityBase;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Field\BaseFieldDefinition;
-use Symfony\Component\DependencyInjection\Container;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\aggregator\FeedInterface;
diff --git a/core/modules/aggregator/src/FeedStorageInterface.php b/core/modules/aggregator/src/FeedStorageInterface.php
index 1075f75..48b2732 100644
--- a/core/modules/aggregator/src/FeedStorageInterface.php
+++ b/core/modules/aggregator/src/FeedStorageInterface.php
@@ -7,7 +7,6 @@
namespace Drupal\aggregator;
-use Drupal\aggregator\FeedInterface;
use Drupal\Core\Entity\EntityStorageInterface;
/**
diff --git a/core/modules/aggregator/src/ItemStorageInterface.php b/core/modules/aggregator/src/ItemStorageInterface.php
index f5012bd..f6526a4 100644
--- a/core/modules/aggregator/src/ItemStorageInterface.php
+++ b/core/modules/aggregator/src/ItemStorageInterface.php
@@ -7,7 +7,6 @@
namespace Drupal\aggregator;
-use Drupal\aggregator\Entity\Item;
use Drupal\Core\Entity\EntityStorageInterface;
/**
diff --git a/core/modules/aggregator/src/ItemStorageSchema.php b/core/modules/aggregator/src/ItemStorageSchema.php
index 9688f67..b174ee2 100644
--- a/core/modules/aggregator/src/ItemStorageSchema.php
+++ b/core/modules/aggregator/src/ItemStorageSchema.php
@@ -7,7 +7,6 @@
namespace Drupal\aggregator;
-use Drupal\Core\Entity\ContentEntityTypeInterface;
use Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema;
use Drupal\Core\Field\FieldStorageDefinitionInterface;
diff --git a/core/modules/aggregator/src/Plugin/Field/FieldFormatter/AggregatorXSSFormatter.php b/core/modules/aggregator/src/Plugin/Field/FieldFormatter/AggregatorXSSFormatter.php
index 0edb460..2b6525a 100644
--- a/core/modules/aggregator/src/Plugin/Field/FieldFormatter/AggregatorXSSFormatter.php
+++ b/core/modules/aggregator/src/Plugin/Field/FieldFormatter/AggregatorXSSFormatter.php
@@ -7,10 +7,8 @@
namespace Drupal\aggregator\Plugin\Field\FieldFormatter;
-use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Field\FormatterBase;
-use Drupal\Core\Form\FormStateInterface;
/**
* Plugin implementation of the 'aggregator_xss' formatter.
diff --git a/core/modules/aggregator/src/Plugin/aggregator/processor/DefaultProcessor.php b/core/modules/aggregator/src/Plugin/aggregator/processor/DefaultProcessor.php
index 21a67dd..95c6324 100644
--- a/core/modules/aggregator/src/Plugin/aggregator/processor/DefaultProcessor.php
+++ b/core/modules/aggregator/src/Plugin/aggregator/processor/DefaultProcessor.php
@@ -12,7 +12,6 @@ use Drupal\aggregator\Plugin\AggregatorPluginSettingsBase;
use Drupal\aggregator\Plugin\ProcessorInterface;
use Drupal\aggregator\FeedInterface;
use Drupal\Component\Utility\Unicode;
-use Drupal\Core\Database\Database;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Datetime\DateFormatterInterface;
use Drupal\Core\Entity\Query\QueryInterface;
diff --git a/core/modules/aggregator/src/Tests/AddFeedTest.php b/core/modules/aggregator/src/Tests/AddFeedTest.php
index cf95815..94f315b 100644
--- a/core/modules/aggregator/src/Tests/AddFeedTest.php
+++ b/core/modules/aggregator/src/Tests/AddFeedTest.php
@@ -6,7 +6,6 @@
*/
namespace Drupal\aggregator\Tests;
-use Drupal\Component\Utility\Html;
/**
* Add feed test.
diff --git a/core/modules/aggregator/src/Tests/FeedParserTest.php b/core/modules/aggregator/src/Tests/FeedParserTest.php
index 6da2ec8..f507302 100644
--- a/core/modules/aggregator/src/Tests/FeedParserTest.php
+++ b/core/modules/aggregator/src/Tests/FeedParserTest.php
@@ -8,7 +8,6 @@
namespace Drupal\aggregator\Tests;
use Drupal\Core\Url;
-use Zend\Feed\Reader\Reader;
/**
* Tests the built-in feed parser with valid feed samples.
diff --git a/core/modules/block/src/Controller/BlockAddController.php b/core/modules/block/src/Controller/BlockAddController.php
index dacfde3..a9abfd6 100644
--- a/core/modules/block/src/Controller/BlockAddController.php
+++ b/core/modules/block/src/Controller/BlockAddController.php
@@ -8,7 +8,6 @@
namespace Drupal\block\Controller;
use Drupal\Core\Controller\ControllerBase;
-use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Controller for building the block instance add form.
diff --git a/core/modules/block/src/Controller/BlockController.php b/core/modules/block/src/Controller/BlockController.php
index 32a6626..2779a9b 100644
--- a/core/modules/block/src/Controller/BlockController.php
+++ b/core/modules/block/src/Controller/BlockController.php
@@ -9,10 +9,8 @@ namespace Drupal\block\Controller;
use Drupal\Component\Utility\Html;
use Drupal\Core\Controller\ControllerBase;
-use Drupal\Core\Extension\ThemeHandler;
use Drupal\Core\Extension\ThemeHandlerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
-use Symfony\Component\HttpFoundation\Request;
/**
* Controller routines for admin block routes.
diff --git a/core/modules/block/src/EventSubscriber/BlockPageDisplayVariantSubscriber.php b/core/modules/block/src/EventSubscriber/BlockPageDisplayVariantSubscriber.php
index f66b968..a686188 100644
--- a/core/modules/block/src/EventSubscriber/BlockPageDisplayVariantSubscriber.php
+++ b/core/modules/block/src/EventSubscriber/BlockPageDisplayVariantSubscriber.php
@@ -7,7 +7,6 @@
namespace Drupal\block\EventSubscriber;
-use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\Core\Render\PageDisplayVariantSelectionEvent;
use Drupal\Core\Render\RenderEvents;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
diff --git a/core/modules/block/src/Tests/BlockViewBuilderTest.php b/core/modules/block/src/Tests/BlockViewBuilderTest.php
index bd35f1d..331db82 100644
--- a/core/modules/block/src/Tests/BlockViewBuilderTest.php
+++ b/core/modules/block/src/Tests/BlockViewBuilderTest.php
@@ -11,8 +11,6 @@ use Drupal\Component\Utility\Html;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Language\LanguageInterface;
use Drupal\simpletest\KernelTestBase;
-use Symfony\Component\HttpFoundation\Request;
-use Symfony\Component\HttpFoundation\RequestStack;
use Drupal\block\Entity\Block;
/**
diff --git a/core/modules/block/tests/modules/block_test/src/Plugin/Block/TestCacheBlock.php b/core/modules/block/tests/modules/block_test/src/Plugin/Block/TestCacheBlock.php
index 157acb4..58da8a7 100644
--- a/core/modules/block/tests/modules/block_test/src/Plugin/Block/TestCacheBlock.php
+++ b/core/modules/block/tests/modules/block_test/src/Plugin/Block/TestCacheBlock.php
@@ -8,7 +8,6 @@
namespace Drupal\block_test\Plugin\Block;
use Drupal\Core\Block\BlockBase;
-use Drupal\Core\Cache\Cache;
/**
* Provides a block to test caching.
diff --git a/core/modules/block_content/block_content.pages.inc b/core/modules/block_content/block_content.pages.inc
index 9e019cd..8629690 100644
--- a/core/modules/block_content/block_content.pages.inc
+++ b/core/modules/block_content/block_content.pages.inc
@@ -6,9 +6,6 @@
*/
use Drupal\Core\Url;
-use Drupal\block_content\Entity\BlockContentType;
-use Drupal\block_content\Entity\BlockContent;
-use Symfony\Component\HttpFoundation\RedirectResponse;
/**
* Prepares variables for a custom block type creation list templates.
diff --git a/core/modules/block_content/src/Controller/BlockContentController.php b/core/modules/block_content/src/Controller/BlockContentController.php
index 4d65362..e43fb83 100644
--- a/core/modules/block_content/src/Controller/BlockContentController.php
+++ b/core/modules/block_content/src/Controller/BlockContentController.php
@@ -7,7 +7,6 @@
namespace Drupal\block_content\Controller;
-use Drupal\Component\Plugin\PluginManagerInterface;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\block_content\BlockContentTypeInterface;
diff --git a/core/modules/block_content/src/Entity/BlockContentType.php b/core/modules/block_content/src/Entity/BlockContentType.php
index 8494814..f020bbd 100644
--- a/core/modules/block_content/src/Entity/BlockContentType.php
+++ b/core/modules/block_content/src/Entity/BlockContentType.php
@@ -7,9 +7,7 @@
namespace Drupal\block_content\Entity;
-use Drupal\Core\Config\Entity\ConfigEntityBase;
use Drupal\Core\Config\Entity\ConfigEntityBundleBase;
-use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\block_content\BlockContentTypeInterface;
/**
diff --git a/core/modules/block_content/src/Form/BlockContentTypeDeleteForm.php b/core/modules/block_content/src/Form/BlockContentTypeDeleteForm.php
index a9ec5d9..3c3b75a 100644
--- a/core/modules/block_content/src/Form/BlockContentTypeDeleteForm.php
+++ b/core/modules/block_content/src/Form/BlockContentTypeDeleteForm.php
@@ -10,7 +10,6 @@ namespace Drupal\block_content\Form;
use Drupal\Core\Entity\EntityDeleteForm;
use Drupal\Core\Entity\Query\QueryFactory;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Url;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
diff --git a/core/modules/block_content/src/Plugin/Block/BlockContentBlock.php b/core/modules/block_content/src/Plugin/Block/BlockContentBlock.php
index 266b295..d271ea1 100644
--- a/core/modules/block_content/src/Plugin/Block/BlockContentBlock.php
+++ b/core/modules/block_content/src/Plugin/Block/BlockContentBlock.php
@@ -13,7 +13,6 @@ use Drupal\Core\Block\BlockManagerInterface;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
-use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Routing\UrlGeneratorInterface;
use Drupal\Core\Session\AccountInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
diff --git a/core/modules/block_content/src/Tests/BlockContentCacheTagsTest.php b/core/modules/block_content/src/Tests/BlockContentCacheTagsTest.php
index 1aecb85..8f543c3 100644
--- a/core/modules/block_content/src/Tests/BlockContentCacheTagsTest.php
+++ b/core/modules/block_content/src/Tests/BlockContentCacheTagsTest.php
@@ -10,7 +10,6 @@ namespace Drupal\block_content\Tests;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Language\LanguageInterface;
-use Drupal\field\Entity\FieldStorageConfig;
use Drupal\system\Tests\Entity\EntityCacheTagsTestBase;
use Symfony\Component\HttpFoundation\Request;
diff --git a/core/modules/block_content/src/Tests/BlockContentTestBase.php b/core/modules/block_content/src/Tests/BlockContentTestBase.php
index 6a01fa6..494bd85 100644
--- a/core/modules/block_content/src/Tests/BlockContentTestBase.php
+++ b/core/modules/block_content/src/Tests/BlockContentTestBase.php
@@ -7,7 +7,6 @@
namespace Drupal\block_content\Tests;
-use Drupal\field\Entity\FieldStorageConfig;
use Drupal\simpletest\WebTestBase;
/**
diff --git a/core/modules/block_content/src/Tests/BlockContentTypeTest.php b/core/modules/block_content/src/Tests/BlockContentTypeTest.php
index 2e29d10..e669a72 100644
--- a/core/modules/block_content/src/Tests/BlockContentTypeTest.php
+++ b/core/modules/block_content/src/Tests/BlockContentTypeTest.php
@@ -9,7 +9,6 @@ namespace Drupal\block_content\Tests;
use Drupal\block_content\Entity\BlockContentType;
use Drupal\Component\Utility\Html;
-use Drupal\Core\Url;
/**
* Ensures that custom block type functions work correctly.
diff --git a/core/modules/book/book.module b/core/modules/book/book.module
index 2bba277..abf11eb 100644
--- a/core/modules/book/book.module
+++ b/core/modules/book/book.module
@@ -6,7 +6,6 @@
*/
use Drupal\book\BookManager;
-use Drupal\book\BookManagerInterface;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\Element;
diff --git a/core/modules/book/src/BookExport.php b/core/modules/book/src/BookExport.php
index dbb62e9..4ae2ea1 100644
--- a/core/modules/book/src/BookExport.php
+++ b/core/modules/book/src/BookExport.php
@@ -8,8 +8,6 @@
namespace Drupal\book;
use Drupal\Core\Entity\EntityManagerInterface;
-use Drupal\Core\Render\RendererInterface;
-use Drupal\node\Entity\Node;
use Drupal\node\NodeInterface;
/**
diff --git a/core/modules/book/src/Controller/BookController.php b/core/modules/book/src/Controller/BookController.php
index 53c64ad..3206e43 100644
--- a/core/modules/book/src/Controller/BookController.php
+++ b/core/modules/book/src/Controller/BookController.php
@@ -12,7 +12,6 @@ use Drupal\book\BookManagerInterface;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Render\RendererInterface;
use Drupal\Core\Url;
-use Drupal\node\Entity\Node;
use Drupal\node\NodeInterface;
use Symfony\Component\DependencyInjection\Container;
use Symfony\Component\DependencyInjection\ContainerInterface;
diff --git a/core/modules/book/src/Form/BookRemoveForm.php b/core/modules/book/src/Form/BookRemoveForm.php
index 7623f5f..80c7f89 100644
--- a/core/modules/book/src/Form/BookRemoveForm.php
+++ b/core/modules/book/src/Form/BookRemoveForm.php
@@ -10,7 +10,6 @@ namespace Drupal\book\Form;
use Drupal\book\BookManagerInterface;
use Drupal\Core\Form\ConfirmFormBase;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Url;
use Drupal\node\NodeInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
diff --git a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/StylesCombo.php b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/StylesCombo.php
index d3eb49f..47b39aa 100644
--- a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/StylesCombo.php
+++ b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/StylesCombo.php
@@ -9,7 +9,6 @@ namespace Drupal\ckeditor\Plugin\CKEditorPlugin;
use Drupal\ckeditor\CKEditorPluginBase;
use Drupal\ckeditor\CKEditorPluginConfigurableInterface;
-use Drupal\Component\Utility\NestedArray;
use Drupal\Core\Form\FormStateInterface;
use Drupal\editor\Entity\Editor;
diff --git a/core/modules/ckeditor/src/Plugin/Editor/CKEditor.php b/core/modules/ckeditor/src/Plugin/Editor/CKEditor.php
index 914c1b4..abf409b 100644
--- a/core/modules/ckeditor/src/Plugin/Editor/CKEditor.php
+++ b/core/modules/ckeditor/src/Plugin/Editor/CKEditor.php
@@ -7,7 +7,6 @@
namespace Drupal\ckeditor\Plugin\Editor;
-use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\ckeditor\CKEditorPluginManager;
use Drupal\Core\Form\FormStateInterface;
diff --git a/core/modules/ckeditor/src/Tests/CKEditorPluginManagerTest.php b/core/modules/ckeditor/src/Tests/CKEditorPluginManagerTest.php
index 96cf56f..aec8dbb 100644
--- a/core/modules/ckeditor/src/Tests/CKEditorPluginManagerTest.php
+++ b/core/modules/ckeditor/src/Tests/CKEditorPluginManagerTest.php
@@ -8,7 +8,6 @@
namespace Drupal\ckeditor\Tests;
use Drupal\simpletest\KernelTestBase;
-use Drupal\ckeditor\CKEditorPluginManager;
/**
* Tests different ways of enabling CKEditor plugins.
diff --git a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaButton.php b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaButton.php
index 855f817..6fa1981 100644
--- a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaButton.php
+++ b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaButton.php
@@ -8,7 +8,6 @@
namespace Drupal\ckeditor_test\Plugin\CKEditorPlugin;
use Drupal\ckeditor\CKEditorPluginButtonsInterface;
-use Drupal\Component\Plugin\PluginBase;
/**
* Defines a "LlamaButton" plugin, with a toolbar builder-enabled "llama" feature.
diff --git a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextual.php b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextual.php
index 16bb68a..8a52ff4 100644
--- a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextual.php
+++ b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextual.php
@@ -8,7 +8,6 @@
namespace Drupal\ckeditor_test\Plugin\CKEditorPlugin;
use Drupal\ckeditor\CKEditorPluginContextualInterface;
-use Drupal\Component\Plugin\PluginBase;
use Drupal\editor\Entity\Editor;
/**
diff --git a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextualAndButton.php b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextualAndButton.php
index 4c43cb7..358742b 100644
--- a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextualAndButton.php
+++ b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextualAndButton.php
@@ -10,7 +10,6 @@ namespace Drupal\ckeditor_test\Plugin\CKEditorPlugin;
use Drupal\ckeditor\CKEditorPluginButtonsInterface;
use Drupal\ckeditor\CKEditorPluginContextualInterface;
use Drupal\ckeditor\CKEditorPluginConfigurableInterface;
-use Drupal\Component\Plugin\PluginBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\editor\Entity\Editor;
diff --git a/core/modules/comment/comment.api.php b/core/modules/comment/comment.api.php
index 563cc5d..4b79b36 100644
--- a/core/modules/comment/comment.api.php
+++ b/core/modules/comment/comment.api.php
@@ -1,6 +1,5 @@
<?php
-use Drupal\Core\Entity\EntityInterface;
use Drupal\comment\CommentInterface;
use Drupal\Core\Url;
diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module
index 4fcb7de..dbeccb6 100644
--- a/core/modules/comment/comment.module
+++ b/core/modules/comment/comment.module
@@ -11,24 +11,17 @@
*/
use Drupal\comment\CommentInterface;
-use Drupal\comment\Entity\Comment;
-use Drupal\comment\CommentManagerInterface;
use Drupal\comment\Entity\CommentType;
use Drupal\Core\Entity\FieldableEntityInterface;
use Drupal\comment\Plugin\Field\FieldType\CommentItemInterface;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Routing\RouteMatchInterface;
-use Drupal\Core\Entity\Entity\EntityViewDisplay;
use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
-use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\Core\Render\Element;
use Drupal\Core\Url;
-use Drupal\field\Entity\FieldStorageConfig;
use Drupal\field\FieldConfigInterface;
use Drupal\field\FieldStorageConfigInterface;
-use Drupal\file\FileInterface;
-use Drupal\user\EntityOwnerInterface;
use Drupal\node\NodeInterface;
use Drupal\user\RoleInterface;
diff --git a/core/modules/comment/src/CommentForm.php b/core/modules/comment/src/CommentForm.php
index 15d1ece..f89dfa2 100644
--- a/core/modules/comment/src/CommentForm.php
+++ b/core/modules/comment/src/CommentForm.php
@@ -10,13 +10,11 @@ namespace Drupal\comment;
use Drupal\comment\Plugin\Field\FieldType\CommentItemInterface;
use Drupal\Component\Utility\Html;
use Drupal\Component\Utility\Unicode;
-use Drupal\Core\Cache\Cache;
use Drupal\Core\Datetime\DrupalDateTime;
use Drupal\Core\Entity\ContentEntityForm;
use Drupal\Core\Entity\EntityConstraintViolationListInterface;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Render\RendererInterface;
use Drupal\Core\Session\AccountInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
diff --git a/core/modules/comment/src/CommentManager.php b/core/modules/comment/src/CommentManager.php
index 729f3dc..4961324 100644
--- a/core/modules/comment/src/CommentManager.php
+++ b/core/modules/comment/src/CommentManager.php
@@ -8,7 +8,6 @@
namespace Drupal\comment;
use Drupal\comment\Plugin\Field\FieldType\CommentItemInterface;
-use Drupal\Component\Utility\Unicode;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityManagerInterface;
diff --git a/core/modules/comment/src/CommentManagerInterface.php b/core/modules/comment/src/CommentManagerInterface.php
index 2c9a531..de8492c 100644
--- a/core/modules/comment/src/CommentManagerInterface.php
+++ b/core/modules/comment/src/CommentManagerInterface.php
@@ -8,8 +8,6 @@
namespace Drupal\comment;
use Drupal\Core\Entity\EntityInterface;
-use Drupal\Core\Session\AccountInterface;
-use Drupal\comment\Plugin\Field\FieldType\CommentItemInterface;
/**
* Comment manager contains common functions to manage comment fields.
diff --git a/core/modules/comment/src/CommentTypeForm.php b/core/modules/comment/src/CommentTypeForm.php
index 3c7ef6a..12d65fb 100644
--- a/core/modules/comment/src/CommentTypeForm.php
+++ b/core/modules/comment/src/CommentTypeForm.php
@@ -7,7 +7,6 @@
namespace Drupal\comment;
-use Drupal\Core\Entity\ContentEntityTypeInterface;
use Drupal\Core\Entity\EntityForm;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Entity\EntityTypeInterface;
diff --git a/core/modules/comment/src/CommentViewBuilder.php b/core/modules/comment/src/CommentViewBuilder.php
index f17649e..22914d3 100644
--- a/core/modules/comment/src/CommentViewBuilder.php
+++ b/core/modules/comment/src/CommentViewBuilder.php
@@ -7,7 +7,6 @@
namespace Drupal\comment;
-use Drupal\Core\Cache\Cache;
use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityManagerInterface;
diff --git a/core/modules/comment/src/Entity/CommentType.php b/core/modules/comment/src/Entity/CommentType.php
index 94fd193..3e6ba0a 100644
--- a/core/modules/comment/src/Entity/CommentType.php
+++ b/core/modules/comment/src/Entity/CommentType.php
@@ -8,7 +8,6 @@
namespace Drupal\comment\Entity;
use Drupal\Core\Config\Entity\ConfigEntityBundleBase;
-use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\comment\CommentTypeInterface;
/**
diff --git a/core/modules/comment/src/Form/CommentTypeDeleteForm.php b/core/modules/comment/src/Form/CommentTypeDeleteForm.php
index deac0ac..f37e47b 100644
--- a/core/modules/comment/src/Form/CommentTypeDeleteForm.php
+++ b/core/modules/comment/src/Form/CommentTypeDeleteForm.php
@@ -12,7 +12,6 @@ use Drupal\Core\Entity\EntityDeleteForm;
use Drupal\Core\Entity\EntityManager;
use Drupal\Core\Entity\Query\QueryFactory;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Url;
use Drupal\field\Entity\FieldStorageConfig;
use Psr\Log\LoggerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
diff --git a/core/modules/comment/src/Plugin/Field/FieldFormatter/CommentDefaultFormatter.php b/core/modules/comment/src/Plugin/Field/FieldFormatter/CommentDefaultFormatter.php
index ac641b6..64ff301 100644
--- a/core/modules/comment/src/Plugin/Field/FieldFormatter/CommentDefaultFormatter.php
+++ b/core/modules/comment/src/Plugin/Field/FieldFormatter/CommentDefaultFormatter.php
@@ -7,12 +7,8 @@
namespace Drupal\comment\Plugin\Field\FieldFormatter;
-use Drupal\comment\CommentManagerInterface;
-use Drupal\comment\CommentStorageInterface;
-use Drupal\comment\Entity\Comment;
use Drupal\comment\Plugin\Field\FieldType\CommentItemInterface;
use Drupal\Core\Entity\EntityManagerInterface;
-use Drupal\Core\Entity\EntityViewBuilderInterface;
use Drupal\Core\Entity\EntityFormBuilderInterface;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Form\FormStateInterface;
diff --git a/core/modules/comment/src/Plugin/views/wizard/Comment.php b/core/modules/comment/src/Plugin/views/wizard/Comment.php
index 366e256..6f9dd79 100644
--- a/core/modules/comment/src/Plugin/views/wizard/Comment.php
+++ b/core/modules/comment/src/Plugin/views/wizard/Comment.php
@@ -7,7 +7,6 @@
namespace Drupal\comment\Plugin\views\wizard;
-use Drupal\Core\Form\FormStateInterface;
use Drupal\views\Plugin\views\wizard\WizardPluginBase;
/**
diff --git a/core/modules/comment/src/Tests/CommentDefaultFormatterCacheTagsTest.php b/core/modules/comment/src/Tests/CommentDefaultFormatterCacheTagsTest.php
index 2c9a867..1164ba0 100644
--- a/core/modules/comment/src/Tests/CommentDefaultFormatterCacheTagsTest.php
+++ b/core/modules/comment/src/Tests/CommentDefaultFormatterCacheTagsTest.php
@@ -8,7 +8,6 @@
namespace Drupal\comment\Tests;
use Drupal\Core\Cache\Cache;
-use Drupal\Core\Session\UserSession;
use Drupal\comment\CommentInterface;
use Drupal\system\Tests\Entity\EntityUnitTestBase;
use Symfony\Component\HttpFoundation\Request;
diff --git a/core/modules/comment/src/Tests/CommentTokenReplaceTest.php b/core/modules/comment/src/Tests/CommentTokenReplaceTest.php
index b7172e3..60f1c28 100644
--- a/core/modules/comment/src/Tests/CommentTokenReplaceTest.php
+++ b/core/modules/comment/src/Tests/CommentTokenReplaceTest.php
@@ -10,7 +10,6 @@ namespace Drupal\comment\Tests;
use Drupal\Component\Render\FormattableMarkup;
use Drupal\Component\Utility\Html;
use Drupal\Component\Utility\UrlHelper;
-use Drupal\Component\Utility\Xss;
use Drupal\comment\Entity\Comment;
use Drupal\Core\Render\BubbleableMetadata;
use Drupal\node\Entity\Node;
diff --git a/core/modules/comment/tests/modules/comment_empty_title_test/comment_empty_title_test.module b/core/modules/comment/tests/modules/comment_empty_title_test/comment_empty_title_test.module
index d9a0503..1fdbd6d 100644
--- a/core/modules/comment/tests/modules/comment_empty_title_test/comment_empty_title_test.module
+++ b/core/modules/comment/tests/modules/comment_empty_title_test/comment_empty_title_test.module
@@ -6,8 +6,6 @@
* markup in edge case scenarios where comments have empty titles.
*/
-use Drupal\comment\CommentInterface;
-
/**
* Implements hook_preprocess_comment().
*/
diff --git a/core/modules/comment/tests/src/Unit/Entity/CommentLockTest.php b/core/modules/comment/tests/src/Unit/Entity/CommentLockTest.php
index 3289e3c..021e7b6 100644
--- a/core/modules/comment/tests/src/Unit/Entity/CommentLockTest.php
+++ b/core/modules/comment/tests/src/Unit/Entity/CommentLockTest.php
@@ -7,7 +7,6 @@
namespace Drupal\Tests\comment\Unit\Entity;
use Drupal\Core\DependencyInjection\ContainerBuilder;
-use Drupal\Core\Entity\EntityType;
use Drupal\Tests\UnitTestCase;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RequestStack;
diff --git a/core/modules/config/src/ConfigSubscriber.php b/core/modules/config/src/ConfigSubscriber.php
index 9da0233..ae71a1d 100644
--- a/core/modules/config/src/ConfigSubscriber.php
+++ b/core/modules/config/src/ConfigSubscriber.php
@@ -9,7 +9,6 @@ namespace Drupal\config;
use Drupal\Core\Config\ConfigEvents;
use Drupal\Core\Config\ConfigImporterEvent;
-use Drupal\Core\Config\ConfigImporterException;
use Drupal\Core\Config\ConfigImportValidateEventSubscriberBase;
diff --git a/core/modules/config/src/Form/ConfigSync.php b/core/modules/config/src/Form/ConfigSync.php
index 3c17697..03de002 100644
--- a/core/modules/config/src/Form/ConfigSync.php
+++ b/core/modules/config/src/Form/ConfigSync.php
@@ -7,11 +7,9 @@
namespace Drupal\config\Form;
-use Drupal\Component\Uuid\UuidInterface;
use Drupal\Core\Config\ConfigImporterException;
use Drupal\Core\Config\ConfigImporter;
use Drupal\Core\Config\TypedConfigManagerInterface;
-use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Extension\ModuleInstallerInterface;
use Drupal\Core\Extension\ThemeHandlerInterface;
diff --git a/core/modules/config/src/Tests/ConfigCRUDTest.php b/core/modules/config/src/Tests/ConfigCRUDTest.php
index 70b8919..6258ccc 100644
--- a/core/modules/config/src/Tests/ConfigCRUDTest.php
+++ b/core/modules/config/src/Tests/ConfigCRUDTest.php
@@ -12,7 +12,6 @@ use Drupal\Core\Config\ConfigNameException;
use Drupal\Core\Config\ConfigValueException;
use Drupal\Core\Config\InstallStorage;
use Drupal\simpletest\KernelTestBase;
-use Drupal\Core\Config\FileStorage;
use Drupal\Core\Config\DatabaseStorage;
use Drupal\Core\Config\UnsupportedDataTypeConfigException;
diff --git a/core/modules/config/src/Tests/ConfigEntityStatusUITest.php b/core/modules/config/src/Tests/ConfigEntityStatusUITest.php
index 87ad9a1..b959acc 100644
--- a/core/modules/config/src/Tests/ConfigEntityStatusUITest.php
+++ b/core/modules/config/src/Tests/ConfigEntityStatusUITest.php
@@ -7,7 +7,6 @@
namespace Drupal\config\Tests;
-use Drupal\Core\Entity\EntityMalformedException;
use Drupal\simpletest\WebTestBase;
/**
diff --git a/core/modules/config/src/Tests/ConfigEntityUnitTest.php b/core/modules/config/src/Tests/ConfigEntityUnitTest.php
index b7249a3..dd6a586 100644
--- a/core/modules/config/src/Tests/ConfigEntityUnitTest.php
+++ b/core/modules/config/src/Tests/ConfigEntityUnitTest.php
@@ -7,7 +7,6 @@
namespace Drupal\config\Tests;
-use Drupal\Core\Entity\EntityInterface;
use Drupal\simpletest\KernelTestBase;
/**
diff --git a/core/modules/config/src/Tests/ConfigImporterMissingContentTest.php b/core/modules/config/src/Tests/ConfigImporterMissingContentTest.php
index 7990da3..cb5522d 100644
--- a/core/modules/config/src/Tests/ConfigImporterMissingContentTest.php
+++ b/core/modules/config/src/Tests/ConfigImporterMissingContentTest.php
@@ -7,9 +7,7 @@
namespace Drupal\config\Tests;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Config\ConfigImporter;
-use Drupal\Core\Config\ConfigImporterException;
use Drupal\Core\Config\StorageComparer;
use Drupal\simpletest\KernelTestBase;
diff --git a/core/modules/config/src/Tests/ConfigInstallTest.php b/core/modules/config/src/Tests/ConfigInstallTest.php
index 7358e65..e5ac68d 100644
--- a/core/modules/config/src/Tests/ConfigInstallTest.php
+++ b/core/modules/config/src/Tests/ConfigInstallTest.php
@@ -9,7 +9,6 @@ namespace Drupal\config\Tests;
use Drupal\Core\Config\InstallStorage;
use Drupal\Core\Config\PreExistingConfigException;
-use Drupal\Core\Config\StorageInterface;
use Drupal\Core\Config\UnmetDependenciesException;
use Drupal\simpletest\KernelTestBase;
diff --git a/core/modules/config/src/Tests/DefaultConfigTest.php b/core/modules/config/src/Tests/DefaultConfigTest.php
index 330cfb2..2610c3d 100644
--- a/core/modules/config/src/Tests/DefaultConfigTest.php
+++ b/core/modules/config/src/Tests/DefaultConfigTest.php
@@ -9,7 +9,6 @@ namespace Drupal\config\Tests;
use Drupal\config_test\TestInstallStorage;
use Drupal\Core\Config\InstallStorage;
-use Drupal\Core\Config\TypedConfigManager;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\simpletest\KernelTestBase;
use Symfony\Component\DependencyInjection\Reference;
diff --git a/core/modules/config/src/Tests/SchemaConfigListenerTest.php b/core/modules/config/src/Tests/SchemaConfigListenerTest.php
index bac6245..58939b6 100644
--- a/core/modules/config/src/Tests/SchemaConfigListenerTest.php
+++ b/core/modules/config/src/Tests/SchemaConfigListenerTest.php
@@ -7,7 +7,6 @@
namespace Drupal\config\Tests;
-use Drupal\Core\Config\Schema\SchemaCheckTrait;
use Drupal\Core\Config\Schema\SchemaIncompleteException;
use Drupal\simpletest\KernelTestBase;
diff --git a/core/modules/config/src/Tests/SchemaConfigListenerWebTest.php b/core/modules/config/src/Tests/SchemaConfigListenerWebTest.php
index 65ca4c3..26bb930 100644
--- a/core/modules/config/src/Tests/SchemaConfigListenerWebTest.php
+++ b/core/modules/config/src/Tests/SchemaConfigListenerWebTest.php
@@ -7,9 +7,7 @@
namespace Drupal\config\Tests;
-use Drupal\Core\Config\Schema\SchemaCheckTrait;
use Drupal\Core\Config\Schema\SchemaIncompleteException;
-use Drupal\simpletest\KernelTestBase;
use Drupal\simpletest\WebTestBase;
/**
diff --git a/core/modules/config/src/Tests/Storage/CachedStorageTest.php b/core/modules/config/src/Tests/Storage/CachedStorageTest.php
index 4d8a8ac..402d87a 100644
--- a/core/modules/config/src/Tests/Storage/CachedStorageTest.php
+++ b/core/modules/config/src/Tests/Storage/CachedStorageTest.php
@@ -9,7 +9,6 @@ namespace Drupal\config\Tests\Storage;
use Drupal\Core\Config\FileStorage;
use Drupal\Core\Config\CachedStorage;
-use Drupal\Core\Database\Database;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;
diff --git a/core/modules/config/tests/config_test/config_test.module b/core/modules/config/tests/config_test/config_test.module
index 9510aba..08aeac6 100644
--- a/core/modules/config/tests/config_test/config_test.module
+++ b/core/modules/config/tests/config_test/config_test.module
@@ -6,7 +6,6 @@
*/
use Drupal\config_test\Entity\ConfigTest;
-use Symfony\Component\HttpFoundation\RedirectResponse;
require_once dirname(__FILE__) . '/config_test.hooks.inc';
diff --git a/core/modules/config/tests/config_test/src/ConfigTestController.php b/core/modules/config/tests/config_test/src/ConfigTestController.php
index a195a6e..6b1bd33 100644
--- a/core/modules/config/tests/config_test/src/ConfigTestController.php
+++ b/core/modules/config/tests/config_test/src/ConfigTestController.php
@@ -9,7 +9,6 @@ namespace Drupal\config_test;
use Drupal\Core\Controller\ControllerBase;
use Drupal\config_test\Entity\ConfigTest;
-use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;
/**
diff --git a/core/modules/config_translation/config_translation.module b/core/modules/config_translation/config_translation.module
index d7274cb..93b280f 100644
--- a/core/modules/config_translation/config_translation.module
+++ b/core/modules/config_translation/config_translation.module
@@ -5,11 +5,9 @@
* Configuration Translation module.
*/
-use Drupal\config_translation\Plugin\Derivative\ConfigTranslationLocalTasks;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\field\FieldConfigInterface;
-use Symfony\Component\Routing\Exception\RouteNotFoundException;
/**
* Implements hook_help().
diff --git a/core/modules/config_translation/src/ConfigEntityMapper.php b/core/modules/config_translation/src/ConfigEntityMapper.php
index 541101b..7caf72c 100644
--- a/core/modules/config_translation/src/ConfigEntityMapper.php
+++ b/core/modules/config_translation/src/ConfigEntityMapper.php
@@ -12,7 +12,6 @@ use Drupal\Core\Config\Entity\ConfigEntityInterface;
use Drupal\Core\Config\TypedConfigManagerInterface;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Language\LanguageManagerInterface;
-use Drupal\Core\Routing\RouteMatch;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Routing\RouteProviderInterface;
use Drupal\Core\StringTranslation\TranslationInterface;
diff --git a/core/modules/config_translation/src/ConfigMapperInterface.php b/core/modules/config_translation/src/ConfigMapperInterface.php
index 90d405a..b56e401 100644
--- a/core/modules/config_translation/src/ConfigMapperInterface.php
+++ b/core/modules/config_translation/src/ConfigMapperInterface.php
@@ -9,7 +9,6 @@ namespace Drupal\config_translation;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Routing\RouteMatchInterface;
-use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\RouteCollection;
/**
diff --git a/core/modules/config_translation/src/ConfigNamesMapper.php b/core/modules/config_translation/src/ConfigNamesMapper.php
index 4d98e2a..5d15dd5 100644
--- a/core/modules/config_translation/src/ConfigNamesMapper.php
+++ b/core/modules/config_translation/src/ConfigNamesMapper.php
@@ -9,7 +9,6 @@ namespace Drupal\config_translation;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Config\TypedConfigManagerInterface;
-use Drupal\Core\Language\Language;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Language\LanguageManagerInterface;
use Drupal\Core\Plugin\PluginBase;
diff --git a/core/modules/config_translation/src/Form/ConfigTranslationDeleteForm.php b/core/modules/config_translation/src/Form/ConfigTranslationDeleteForm.php
index 8e2b669..5b74b95 100644
--- a/core/modules/config_translation/src/Form/ConfigTranslationDeleteForm.php
+++ b/core/modules/config_translation/src/Form/ConfigTranslationDeleteForm.php
@@ -16,7 +16,6 @@ use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Url;
use Drupal\language\ConfigurableLanguageManagerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
-use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
/**
diff --git a/core/modules/config_translation/src/Form/ConfigTranslationFormBase.php b/core/modules/config_translation/src/Form/ConfigTranslationFormBase.php
index f7b0497..afcb35a 100644
--- a/core/modules/config_translation/src/Form/ConfigTranslationFormBase.php
+++ b/core/modules/config_translation/src/Form/ConfigTranslationFormBase.php
@@ -11,7 +11,6 @@ use Drupal\config_translation\ConfigMapperManagerInterface;
use Drupal\Core\Config\TypedConfigManagerInterface;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\TypedData\TypedDataInterface;
-use Drupal\Core\TypedData\TraversableTypedDataInterface;
use Drupal\Core\Form\BaseFormIdInterface;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
diff --git a/core/modules/config_translation/src/Plugin/Derivative/ConfigTranslationContextualLinks.php b/core/modules/config_translation/src/Plugin/Derivative/ConfigTranslationContextualLinks.php
index 8ecde5e..0b95881 100644
--- a/core/modules/config_translation/src/Plugin/Derivative/ConfigTranslationContextualLinks.php
+++ b/core/modules/config_translation/src/Plugin/Derivative/ConfigTranslationContextualLinks.php
@@ -7,7 +7,6 @@
namespace Drupal\config_translation\Plugin\Derivative;
-use Drupal\Component\Utility\Unicode;
use Drupal\Component\Plugin\Derivative\DeriverBase;
use Drupal\config_translation\ConfigMapperManagerInterface;
use Drupal\Core\Plugin\Discovery\ContainerDeriverInterface;
diff --git a/core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php b/core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php
index a18bc95..a718808 100644
--- a/core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php
+++ b/core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php
@@ -10,7 +10,6 @@ namespace Drupal\config_translation\Tests;
use Drupal\Component\Serialization\Json;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\Component\Utility\Unicode;
-use Drupal\Core\Config\FileStorage;
use Drupal\Core\Language\Language;
use Drupal\Core\Language\LanguageInterface;
use Drupal\field\Entity\FieldConfig;
diff --git a/core/modules/config_translation/tests/src/Unit/ConfigMapperManagerTest.php b/core/modules/config_translation/tests/src/Unit/ConfigMapperManagerTest.php
index 5cb6351..2dc9c1e 100644
--- a/core/modules/config_translation/tests/src/Unit/ConfigMapperManagerTest.php
+++ b/core/modules/config_translation/tests/src/Unit/ConfigMapperManagerTest.php
@@ -13,7 +13,6 @@ use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\TypedData\TypedDataInterface;
use Drupal\Tests\UnitTestCase;
use Drupal\Core\TypedData\DataDefinition;
-use Drupal\Core\TypedData\DataDefinitionInterface;
/**
* Tests the functionality provided by configuration translation mapper manager.
diff --git a/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php b/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php
index 0223c6f..c9d3c31 100644
--- a/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php
+++ b/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php
@@ -15,7 +15,6 @@ use Drupal\Core\Routing\RouteMatch;
use Drupal\Core\Url;
use Drupal\Tests\UnitTestCase;
use Symfony\Component\Routing\Route;
-use Symfony\Component\HttpFoundation\Request;
/**
* Tests the functionality provided by the configuration names mapper.
diff --git a/core/modules/contact/src/ContactFormEditForm.php b/core/modules/contact/src/ContactFormEditForm.php
index c545b0e..b4adde6 100644
--- a/core/modules/contact/src/ContactFormEditForm.php
+++ b/core/modules/contact/src/ContactFormEditForm.php
@@ -7,7 +7,6 @@
namespace Drupal\contact;
-use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Entity\EntityForm;
diff --git a/core/modules/contact/src/ContactFormListBuilder.php b/core/modules/contact/src/ContactFormListBuilder.php
index ed027c1..29ace77 100644
--- a/core/modules/contact/src/ContactFormListBuilder.php
+++ b/core/modules/contact/src/ContactFormListBuilder.php
@@ -7,10 +7,8 @@
namespace Drupal\contact;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface;
-use Drupal\Core\Link;
/**
* Defines a class to build a listing of contact form entities.
diff --git a/core/modules/contact/src/MessageForm.php b/core/modules/contact/src/MessageForm.php
index fec2ca8..46bb5d9 100644
--- a/core/modules/contact/src/MessageForm.php
+++ b/core/modules/contact/src/MessageForm.php
@@ -7,13 +7,11 @@
namespace Drupal\contact;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Datetime\DateFormatterInterface;
use Drupal\Core\Entity\ContentEntityForm;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Flood\FloodInterface;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Language\LanguageManagerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
diff --git a/core/modules/contact/src/Plugin/views/field/ContactLink.php b/core/modules/contact/src/Plugin/views/field/ContactLink.php
index 8b85eb1..d5db769 100644
--- a/core/modules/contact/src/Plugin/views/field/ContactLink.php
+++ b/core/modules/contact/src/Plugin/views/field/ContactLink.php
@@ -8,7 +8,6 @@
namespace Drupal\contact\Plugin\views\field;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Url;
use Drupal\views\Plugin\views\field\LinkBase;
use Drupal\views\ResultRow;
diff --git a/core/modules/contact/src/Tests/MessageEntityTest.php b/core/modules/contact/src/Tests/MessageEntityTest.php
index 7d9b9b2..4e61e21 100644
--- a/core/modules/contact/src/Tests/MessageEntityTest.php
+++ b/core/modules/contact/src/Tests/MessageEntityTest.php
@@ -6,7 +6,6 @@
namespace Drupal\contact\Tests;
-use Drupal\contact\Entity\Message;
use Drupal\system\Tests\Entity\EntityUnitTestBase;
/**
diff --git a/core/modules/content_translation/content_translation.install b/core/modules/content_translation/content_translation.install
index 6565a2b..0bfe414 100644
--- a/core/modules/content_translation/content_translation.install
+++ b/core/modules/content_translation/content_translation.install
@@ -5,9 +5,6 @@
* Installation functions for Content Translation module.
*/
-use Drupal\Core\Language\LanguageInterface;
-use Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationUrl;
-
/**
* Implements hook_install().
*/
diff --git a/core/modules/content_translation/src/ContentTranslationManager.php b/core/modules/content_translation/src/ContentTranslationManager.php
index d0525e1..b4d7017 100644
--- a/core/modules/content_translation/src/ContentTranslationManager.php
+++ b/core/modules/content_translation/src/ContentTranslationManager.php
@@ -9,8 +9,6 @@ namespace Drupal\content_translation;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityManagerInterface;
-use Drupal\Core\Entity\EntityTypeInterface;
-use Drupal\language\Entity\ContentLanguageSettings;
/**
* Provides common functionality for content translation.
diff --git a/core/modules/content_translation/src/ContentTranslationManagerInterface.php b/core/modules/content_translation/src/ContentTranslationManagerInterface.php
index 5afa2de..f06c030 100644
--- a/core/modules/content_translation/src/ContentTranslationManagerInterface.php
+++ b/core/modules/content_translation/src/ContentTranslationManagerInterface.php
@@ -8,7 +8,6 @@
namespace Drupal\content_translation;
use Drupal\Core\Entity\EntityInterface;
-use Drupal\Core\Entity\EntityTypeInterface;
/**
* Provides an interface for common functionality for content translation.
diff --git a/core/modules/content_translation/src/FieldTranslationSynchronizer.php b/core/modules/content_translation/src/FieldTranslationSynchronizer.php
index 6b94671..b2dbf65 100644
--- a/core/modules/content_translation/src/FieldTranslationSynchronizer.php
+++ b/core/modules/content_translation/src/FieldTranslationSynchronizer.php
@@ -9,7 +9,6 @@ namespace Drupal\content_translation;
use Drupal\Core\Config\Entity\ThirdPartySettingsInterface;
use Drupal\Core\Entity\ContentEntityInterface;
-use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityManagerInterface;
/**
diff --git a/core/modules/content_translation/src/Plugin/Derivative/ContentTranslationContextualLinks.php b/core/modules/content_translation/src/Plugin/Derivative/ContentTranslationContextualLinks.php
index 9acf394..f1c2fe3 100644
--- a/core/modules/content_translation/src/Plugin/Derivative/ContentTranslationContextualLinks.php
+++ b/core/modules/content_translation/src/Plugin/Derivative/ContentTranslationContextualLinks.php
@@ -9,7 +9,6 @@ namespace Drupal\content_translation\Plugin\Derivative;
use Drupal\Component\Plugin\Derivative\DeriverBase;
use Drupal\Core\Plugin\Discovery\ContainerDeriverInterface;
-use Drupal\Core\Routing\RouteProviderInterface;
use Drupal\content_translation\ContentTranslationManagerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
diff --git a/core/modules/content_translation/src/Routing/ContentTranslationRouteSubscriber.php b/core/modules/content_translation/src/Routing/ContentTranslationRouteSubscriber.php
index 91d4314..a2b54a8 100644
--- a/core/modules/content_translation/src/Routing/ContentTranslationRouteSubscriber.php
+++ b/core/modules/content_translation/src/Routing/ContentTranslationRouteSubscriber.php
@@ -8,7 +8,6 @@
namespace Drupal\content_translation\Routing;
use Drupal\content_translation\ContentTranslationManagerInterface;
-use Drupal\Core\Access\AccessManagerInterface;
use Drupal\Core\Routing\RouteSubscriberBase;
use Drupal\Core\Routing\RoutingEvents;
use Symfony\Component\Routing\Route;
diff --git a/core/modules/content_translation/src/Tests/Views/TranslationLinkTest.php b/core/modules/content_translation/src/Tests/Views/TranslationLinkTest.php
index bb349e2..30ebe9f 100644
--- a/core/modules/content_translation/src/Tests/Views/TranslationLinkTest.php
+++ b/core/modules/content_translation/src/Tests/Views/TranslationLinkTest.php
@@ -7,7 +7,6 @@
namespace Drupal\content_translation\Tests\Views;
-use Drupal\views\Tests\ViewTestBase;
use Drupal\content_translation\Tests\ContentTranslationTestBase;
use Drupal\views\Tests\ViewTestData;
use Drupal\Core\Language\Language;
diff --git a/core/modules/contextual/src/ContextualController.php b/core/modules/contextual/src/ContextualController.php
index 975113d..62ee55a 100644
--- a/core/modules/contextual/src/ContextualController.php
+++ b/core/modules/contextual/src/ContextualController.php
@@ -12,7 +12,6 @@ use Symfony\Component\DependencyInjection\ContainerAwareTrait;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
-use Drupal\Core\Entity\EntityInterface;
/**
* Returns responses for Contextual module routes.
diff --git a/core/modules/datetime/datetime.module b/core/modules/datetime/datetime.module
index 9d55b09..2ad07a2 100644
--- a/core/modules/datetime/datetime.module
+++ b/core/modules/datetime/datetime.module
@@ -5,9 +5,6 @@
* Field hooks to implement a simple datetime field.
*/
-use Drupal\Component\Utility\NestedArray;
-use Drupal\Core\Datetime\DrupalDateTime;
-use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Routing\RouteMatchInterface;
/**
diff --git a/core/modules/datetime/src/Tests/Views/FilterDateTimeTest.php b/core/modules/datetime/src/Tests/Views/FilterDateTimeTest.php
index 137f45c..4392cbf 100644
--- a/core/modules/datetime/src/Tests/Views/FilterDateTimeTest.php
+++ b/core/modules/datetime/src/Tests/Views/FilterDateTimeTest.php
@@ -7,7 +7,6 @@
namespace Drupal\datetime\Tests\Views;
-use Drupal\Core\Datetime\Element\Datetime;
use Drupal\views\Views;
/**
diff --git a/core/modules/dblog/src/Plugin/views/field/DblogOperations.php b/core/modules/dblog/src/Plugin/views/field/DblogOperations.php
index 0aac20f..4459275 100644
--- a/core/modules/dblog/src/Plugin/views/field/DblogOperations.php
+++ b/core/modules/dblog/src/Plugin/views/field/DblogOperations.php
@@ -9,8 +9,6 @@ namespace Drupal\dblog\Plugin\views\field;
use Drupal\views\Plugin\views\field\FieldPluginBase;
use Drupal\views\ResultRow;
-use Drupal\views\ViewExecutable;
-use Drupal\views\Plugin\views\display\DisplayPluginBase;
/**
* Provides a field handler that renders operation link markup.
diff --git a/core/modules/dynamic_page_cache/src/Tests/DynamicPageCacheIntegrationTest.php b/core/modules/dynamic_page_cache/src/Tests/DynamicPageCacheIntegrationTest.php
index 5c174a8..ccc9170 100644
--- a/core/modules/dynamic_page_cache/src/Tests/DynamicPageCacheIntegrationTest.php
+++ b/core/modules/dynamic_page_cache/src/Tests/DynamicPageCacheIntegrationTest.php
@@ -11,7 +11,6 @@ use Drupal\Core\EventSubscriber\MainContentViewSubscriber;
use Drupal\Core\Url;
use Drupal\dynamic_page_cache\EventSubscriber\DynamicPageCacheSubscriber;
use Drupal\simpletest\WebTestBase;
-use Drupal\system\Tests\Cache\AssertPageCacheContextsAndTagsTrait;
/**
* Enables the Dynamic Page Cache and tests it in various scenarios.
diff --git a/core/modules/dynamic_page_cache/tests/dynamic_page_cache_test/src/DynamicPageCacheTestController.php b/core/modules/dynamic_page_cache/tests/dynamic_page_cache_test/src/DynamicPageCacheTestController.php
index b11984e..929f3a0 100644
--- a/core/modules/dynamic_page_cache/tests/dynamic_page_cache_test/src/DynamicPageCacheTestController.php
+++ b/core/modules/dynamic_page_cache/tests/dynamic_page_cache_test/src/DynamicPageCacheTestController.php
@@ -7,7 +7,6 @@
namespace Drupal\dynamic_page_cache_test;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Cache\CacheableResponse;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\user\Entity\User;
diff --git a/core/modules/editor/src/EditorController.php b/core/modules/editor/src/EditorController.php
index 44feda3..fd605cd 100644
--- a/core/modules/editor/src/EditorController.php
+++ b/core/modules/editor/src/EditorController.php
@@ -8,13 +8,9 @@
namespace Drupal\editor;
use Drupal\Core\Ajax\AjaxResponse;
-use Drupal\Core\Ajax\OpenModalDialogCommand;
-use Drupal\Core\Ajax\CloseModalDialogCommand;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Entity\EntityInterface;
use Drupal\editor\Ajax\GetUntransformedTextCommand;
-use Drupal\editor\Form\EditorImageDialog;
-use Drupal\editor\Form\EditorLinkDialog;
use Drupal\filter\Plugin\FilterInterface;
use Drupal\filter\FilterFormatInterface;
use Symfony\Component\HttpFoundation\JsonResponse;
diff --git a/core/modules/editor/src/Plugin/EditorBase.php b/core/modules/editor/src/Plugin/EditorBase.php
index eafe673..cc39c18 100644
--- a/core/modules/editor/src/Plugin/EditorBase.php
+++ b/core/modules/editor/src/Plugin/EditorBase.php
@@ -10,7 +10,6 @@ namespace Drupal\editor\Plugin;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\PluginBase;
use Drupal\editor\Entity\Editor;
-use Drupal\editor\Plugin\EditorPluginInterface;
/**
* Defines a base class from which other modules providing editors may extend.
diff --git a/core/modules/editor/src/Tests/EditorImageDialogTest.php b/core/modules/editor/src/Tests/EditorImageDialogTest.php
index 8efea38..b1745b0 100644
--- a/core/modules/editor/src/Tests/EditorImageDialogTest.php
+++ b/core/modules/editor/src/Tests/EditorImageDialogTest.php
@@ -7,20 +7,12 @@
namespace Drupal\editor\Tests;
-use Drupal\Core\Form\FormInterface;
use Drupal\Core\Form\FormState;
-use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Render\Element\PathElement;
-use Drupal\Core\Url;
use Drupal\editor\Entity\Editor;
use Drupal\editor\Form\EditorImageDialog;
use Drupal\filter\Entity\FilterFormat;
use Drupal\node\Entity\NodeType;
-use Drupal\simpletest\KernelTestBase;
use Drupal\system\Tests\Entity\EntityUnitTestBase;
-use Drupal\user\Entity\Role;
-use Drupal\user\Entity\User;
-use Symfony\Component\HttpFoundation\Request;
/**
* Tests EditorImageDialog validation and conversion functionality.
diff --git a/core/modules/editor/src/Tests/EditorManagerTest.php b/core/modules/editor/src/Tests/EditorManagerTest.php
index c28d99d..9bb7a67 100644
--- a/core/modules/editor/src/Tests/EditorManagerTest.php
+++ b/core/modules/editor/src/Tests/EditorManagerTest.php
@@ -8,7 +8,6 @@
namespace Drupal\editor\Tests;
use Drupal\simpletest\KernelTestBase;
-use Drupal\editor\Plugin\EditorManager;
/**
* Tests detection of text editors and correct generation of attachments.
diff --git a/core/modules/editor/src/Tests/QuickEditIntegrationTest.php b/core/modules/editor/src/Tests/QuickEditIntegrationTest.php
index 098b4cf..f9e1625 100644
--- a/core/modules/editor/src/Tests/QuickEditIntegrationTest.php
+++ b/core/modules/editor/src/Tests/QuickEditIntegrationTest.php
@@ -10,9 +10,7 @@ namespace Drupal\editor\Tests;
use Drupal\Component\Serialization\Json;
use Drupal\Core\EventSubscriber\AjaxResponseSubscriber;
use Drupal\Core\Language\LanguageInterface;
-use Drupal\quickedit\EditorSelector;
use Drupal\quickedit\MetadataGenerator;
-use Drupal\quickedit\Plugin\InPlaceEditorManager;
use Drupal\quickedit\Tests\QuickEditTestBase;
use Drupal\quickedit_test\MockEditEntityFieldAccessCheck;
use Drupal\editor\EditorController;
diff --git a/core/modules/field/field.api.php b/core/modules/field/field.api.php
index 55c239d..fb85d62 100644
--- a/core/modules/field/field.api.php
+++ b/core/modules/field/field.api.php
@@ -5,8 +5,6 @@
* @{
*/
-use Drupal\Component\Utility\NestedArray;
-
/**
* @defgroup field_types Field Types API
* @{
diff --git a/core/modules/field/src/Entity/FieldConfig.php b/core/modules/field/src/Entity/FieldConfig.php
index e2ab409..8e3fba3 100644
--- a/core/modules/field/src/Entity/FieldConfig.php
+++ b/core/modules/field/src/Entity/FieldConfig.php
@@ -7,7 +7,6 @@
namespace Drupal\field\Entity;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Field\FieldConfigBase;
use Drupal\Core\Field\FieldException;
diff --git a/core/modules/field/src/Plugin/migrate/source/d7/ViewMode.php b/core/modules/field/src/Plugin/migrate/source/d7/ViewMode.php
index 89bdc78..f471e48 100644
--- a/core/modules/field/src/Plugin/migrate/source/d7/ViewMode.php
+++ b/core/modules/field/src/Plugin/migrate/source/d7/ViewMode.php
@@ -7,7 +7,6 @@
namespace Drupal\field\Plugin\migrate\source\d7;
-use Drupal\migrate\Annotation\MigrateSource;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
/**
diff --git a/core/modules/field/src/Tests/Boolean/BooleanFormatterSettingsTest.php b/core/modules/field/src/Tests/Boolean/BooleanFormatterSettingsTest.php
index e9b693d..8c5146b 100644
--- a/core/modules/field/src/Tests/Boolean/BooleanFormatterSettingsTest.php
+++ b/core/modules/field/src/Tests/Boolean/BooleanFormatterSettingsTest.php
@@ -9,8 +9,6 @@ namespace Drupal\field\Tests\Boolean;
use Drupal\Component\Utility\Unicode;
use Drupal\Component\Utility\SafeMarkup;
-use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
-use Drupal\Core\Entity\FieldableEntityInterface;
use Drupal\field\Entity\FieldConfig;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\simpletest\WebTestBase;
diff --git a/core/modules/field/src/Tests/EntityReference/EntityReferenceIntegrationTest.php b/core/modules/field/src/Tests/EntityReference/EntityReferenceIntegrationTest.php
index 0d1fe9b..e73d489 100644
--- a/core/modules/field/src/Tests/EntityReference/EntityReferenceIntegrationTest.php
+++ b/core/modules/field/src/Tests/EntityReference/EntityReferenceIntegrationTest.php
@@ -9,7 +9,6 @@ namespace Drupal\field\Tests\EntityReference;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\config\Tests\AssertConfigEntityImportTrait;
-use Drupal\Core\Config\Entity\ConfigEntityBase;
use Drupal\field\Entity\FieldConfig;
use Drupal\simpletest\WebTestBase;
diff --git a/core/modules/field/src/Tests/FieldAttachOtherTest.php b/core/modules/field/src/Tests/FieldAttachOtherTest.php
index 9441f67..e76145e 100644
--- a/core/modules/field/src/Tests/FieldAttachOtherTest.php
+++ b/core/modules/field/src/Tests/FieldAttachOtherTest.php
@@ -8,7 +8,6 @@
namespace Drupal\field\Tests;
use Drupal\Core\Form\FormState;
-use Drupal\Core\Language\LanguageInterface;
/**
* Tests other Field API functions.
diff --git a/core/modules/field/src/Tests/Migrate/d6/MigrateFieldFormatterSettingsTest.php b/core/modules/field/src/Tests/Migrate/d6/MigrateFieldFormatterSettingsTest.php
index 435c83c..1ad3d36 100644
--- a/core/modules/field/src/Tests/Migrate/d6/MigrateFieldFormatterSettingsTest.php
+++ b/core/modules/field/src/Tests/Migrate/d6/MigrateFieldFormatterSettingsTest.php
@@ -8,7 +8,6 @@
namespace Drupal\field\Tests\Migrate\d6;
use Drupal\Core\Entity\Entity\EntityViewDisplay;
-use Drupal\Core\Entity\Entity\EntityViewMode;
use Drupal\migrate\Entity\Migration;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
diff --git a/core/modules/field/tests/modules/field_test/field_test.module b/core/modules/field/tests/modules/field_test/field_test.module
index bf608d8..c66a0d6 100644
--- a/core/modules/field/tests/modules/field_test/field_test.module
+++ b/core/modules/field/tests/modules/field_test/field_test.module
@@ -1,6 +1,5 @@
<?php
-use Drupal\Core\Entity\EntityInterface;
use Drupal\field\FieldStorageConfigInterface;
use Drupal\Core\Form\FormStateInterface;
diff --git a/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/HiddenTestItem.php b/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/HiddenTestItem.php
index bbac229..f0d4fdb 100644
--- a/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/HiddenTestItem.php
+++ b/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/HiddenTestItem.php
@@ -7,9 +7,6 @@
namespace Drupal\field_test\Plugin\Field\FieldType;
-use Drupal\Core\Field\FieldStorageDefinitionInterface;
-use Drupal\Core\TypedData\DataDefinition;
-
/**
* Defines the 'hidden_test' entity field item.
*
diff --git a/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php b/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php
index 4cf0065..e7e2a2d 100644
--- a/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php
+++ b/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php
@@ -9,7 +9,6 @@ namespace Drupal\Tests\field\Unit;
use Drupal\Core\Entity\EntityType;
use Drupal\Core\Field\FieldDefinitionInterface;
-use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\field\Entity\FieldConfig;
use Drupal\Tests\UnitTestCase;
diff --git a/core/modules/field/tests/src/Unit/FieldStorageConfigEntityUnitTest.php b/core/modules/field/tests/src/Unit/FieldStorageConfigEntityUnitTest.php
index e41615b..13ba3cf 100644
--- a/core/modules/field/tests/src/Unit/FieldStorageConfigEntityUnitTest.php
+++ b/core/modules/field/tests/src/Unit/FieldStorageConfigEntityUnitTest.php
@@ -8,7 +8,6 @@
namespace Drupal\Tests\field\Unit;
use Drupal\Core\DependencyInjection\ContainerBuilder;
-use Drupal\Core\Field\FieldItemBase;
use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\Core\Field\FieldTypePluginManagerInterface;
use Drupal\field\Entity\FieldStorageConfig;
diff --git a/core/modules/field_ui/src/Controller/FieldConfigListController.php b/core/modules/field_ui/src/Controller/FieldConfigListController.php
index 649e7bb..9555cad 100644
--- a/core/modules/field_ui/src/Controller/FieldConfigListController.php
+++ b/core/modules/field_ui/src/Controller/FieldConfigListController.php
@@ -9,7 +9,6 @@ namespace Drupal\field_ui\Controller;
use Drupal\Core\Entity\Controller\EntityListController;
use Drupal\Core\Routing\RouteMatchInterface;
-use Symfony\Component\HttpFoundation\Request;
/**
* Defines a controller to list field instances.
diff --git a/core/modules/field_ui/src/Plugin/Derivative/FieldUiLocalTask.php b/core/modules/field_ui/src/Plugin/Derivative/FieldUiLocalTask.php
index 6c869e5..14c2aec 100644
--- a/core/modules/field_ui/src/Plugin/Derivative/FieldUiLocalTask.php
+++ b/core/modules/field_ui/src/Plugin/Derivative/FieldUiLocalTask.php
@@ -7,7 +7,6 @@
namespace Drupal\field_ui\Plugin\Derivative;
-use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Component\Plugin\Derivative\DeriverBase;
use Drupal\Core\Plugin\Discovery\ContainerDeriverInterface;
diff --git a/core/modules/file/file.field.inc b/core/modules/file/file.field.inc
index aac6bd8..6c06575 100644
--- a/core/modules/file/file.field.inc
+++ b/core/modules/file/file.field.inc
@@ -5,7 +5,6 @@
* Field module functionality for the File module.
*/
-use Drupal\Component\Utility\Html;
use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\Core\Field\FieldFilteredMarkup;
use Drupal\Core\Render\Element;
diff --git a/core/modules/file/file.module b/core/modules/file/file.module
index b198dcb..d48b232 100644
--- a/core/modules/file/file.module
+++ b/core/modules/file/file.module
@@ -18,7 +18,6 @@ use Drupal\Component\Utility\NestedArray;
use Drupal\Component\Utility\Unicode;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Template\Attribute;
-use Drupal\file\FileUsage\FileUsageInterface;
// Load all Field module hooks for File.
require_once __DIR__ . '/file.field.inc';
diff --git a/core/modules/file/src/FileInterface.php b/core/modules/file/src/FileInterface.php
index 8dd131b..1b02d1f 100644
--- a/core/modules/file/src/FileInterface.php
+++ b/core/modules/file/src/FileInterface.php
@@ -10,7 +10,6 @@ namespace Drupal\file;
use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\user\EntityOwnerInterface;
use Drupal\Core\Entity\EntityChangedInterface;
-use Drupal\user\UserInterface;
/**
* Defines getter and setter methods for file entity base fields.
diff --git a/core/modules/file/src/FileUsage/DatabaseFileUsageBackend.php b/core/modules/file/src/FileUsage/DatabaseFileUsageBackend.php
index e28c94b..e00b9f2 100644
--- a/core/modules/file/src/FileUsage/DatabaseFileUsageBackend.php
+++ b/core/modules/file/src/FileUsage/DatabaseFileUsageBackend.php
@@ -8,7 +8,6 @@
namespace Drupal\file\FileUsage;
use Drupal\Core\Database\Connection;
-use Drupal\Core\Database\DatabaseExceptionWrapper;
use Drupal\file\FileInterface;
/**
diff --git a/core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php b/core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php
index 7d32ce9..bd511c8 100644
--- a/core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php
+++ b/core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php
@@ -17,7 +17,6 @@ use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Render\Element;
use Drupal\Core\Render\ElementInfoManagerInterface;
-use Drupal\Core\Url;
use Drupal\file\Element\ManagedFile;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\file\Entity\File;
diff --git a/core/modules/file/src/Plugin/views/field/File.php b/core/modules/file/src/Plugin/views/field/File.php
index 77237e8..615aa9f 100644
--- a/core/modules/file/src/Plugin/views/field/File.php
+++ b/core/modules/file/src/Plugin/views/field/File.php
@@ -8,7 +8,6 @@
namespace Drupal\file\Plugin\views\field;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Url;
use Drupal\views\ResultRow;
use Drupal\views\ViewExecutable;
use Drupal\views\Plugin\views\display\DisplayPluginBase;
diff --git a/core/modules/file/src/Tests/DownloadTest.php b/core/modules/file/src/Tests/DownloadTest.php
index ea2b745..997eb56 100644
--- a/core/modules/file/src/Tests/DownloadTest.php
+++ b/core/modules/file/src/Tests/DownloadTest.php
@@ -7,8 +7,6 @@
namespace Drupal\file\Tests;
-use Symfony\Component\HttpFoundation\Request;
-
/**
* Tests for download/file transfer functions.
*
diff --git a/core/modules/file/src/Tests/FileFieldRSSContentTest.php b/core/modules/file/src/Tests/FileFieldRSSContentTest.php
index 5314a7b..dd31f85 100644
--- a/core/modules/file/src/Tests/FileFieldRSSContentTest.php
+++ b/core/modules/file/src/Tests/FileFieldRSSContentTest.php
@@ -7,7 +7,6 @@
namespace Drupal\file\Tests;
-use Drupal\node\Entity\Node;
use Drupal\file\Entity\File;
/**
diff --git a/core/modules/file/src/Tests/SaveTest.php b/core/modules/file/src/Tests/SaveTest.php
index 97d4882..ecd7d60 100644
--- a/core/modules/file/src/Tests/SaveTest.php
+++ b/core/modules/file/src/Tests/SaveTest.php
@@ -8,9 +8,6 @@
namespace Drupal\file\Tests;
use Drupal\file\Entity\File;
-use Drupal\Core\Entity\EntityStorageException;
-use Drupal\Core\Entity\EntityStorageInterface;
-use Drupal\Core\Entity\Sql\SqlEntityStorageInterface;
/**
* File saving tests.
diff --git a/core/modules/filter/filter.module b/core/modules/filter/filter.module
index 3afa7a1..f1f28b5 100644
--- a/core/modules/filter/filter.module
+++ b/core/modules/filter/filter.module
@@ -7,7 +7,6 @@
use Drupal\Component\Utility\Html;
use Drupal\Component\Utility\Unicode;
-use Drupal\Component\Utility\Xss;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Render\Element;
use Drupal\Core\Routing\RouteMatchInterface;
diff --git a/core/modules/filter/src/Element/ProcessedText.php b/core/modules/filter/src/Element/ProcessedText.php
index 6a3fa40..fc7e52b 100644
--- a/core/modules/filter/src/Element/ProcessedText.php
+++ b/core/modules/filter/src/Element/ProcessedText.php
@@ -7,11 +7,9 @@
namespace Drupal\filter\Element;
-use Drupal\Component\Utility\NestedArray;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Render\BubbleableMetadata;
use Drupal\Core\Render\Element\RenderElement;
-use Drupal\Core\Render\Renderer;
use Drupal\filter\Entity\FilterFormat;
use Drupal\filter\Plugin\FilterInterface;
use Drupal\filter\Render\FilteredMarkup;
diff --git a/core/modules/filter/src/FilterFormatFormBase.php b/core/modules/filter/src/FilterFormatFormBase.php
index e1222b4..a528c0d 100644
--- a/core/modules/filter/src/FilterFormatFormBase.php
+++ b/core/modules/filter/src/FilterFormatFormBase.php
@@ -7,7 +7,6 @@
namespace Drupal\filter;
-use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Entity\EntityForm;
use Drupal\Core\Entity\Query\QueryFactory;
use Drupal\Core\Form\FormStateInterface;
diff --git a/core/modules/filter/src/Tests/FilterAPITest.php b/core/modules/filter/src/Tests/FilterAPITest.php
index b8a93f1..08a5e56 100644
--- a/core/modules/filter/src/Tests/FilterAPITest.php
+++ b/core/modules/filter/src/Tests/FilterAPITest.php
@@ -8,7 +8,6 @@
namespace Drupal\filter\Tests;
use Drupal\Core\Language\LanguageInterface;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Session\AnonymousUserSession;
use Drupal\Core\TypedData\OptionsProviderInterface;
use Drupal\Core\TypedData\DataDefinition;
diff --git a/core/modules/filter/src/Tests/FilterUnitTest.php b/core/modules/filter/src/Tests/FilterUnitTest.php
index 1e3d333..a407ebf 100644
--- a/core/modules/filter/src/Tests/FilterUnitTest.php
+++ b/core/modules/filter/src/Tests/FilterUnitTest.php
@@ -8,7 +8,6 @@
namespace Drupal\filter\Tests;
use Drupal\Component\Utility\Html;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Language\Language;
use Drupal\Core\Render\RenderContext;
use Drupal\editor\EditorXssFilter\Standard;
diff --git a/core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestCacheMerge.php b/core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestCacheMerge.php
index 9e56c9b..8d5608d 100644
--- a/core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestCacheMerge.php
+++ b/core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestCacheMerge.php
@@ -10,7 +10,6 @@ namespace Drupal\filter_test\Plugin\Filter;
use Drupal\filter\FilterProcessResult;
use Drupal\filter\Plugin\FilterBase;
use Drupal\Core\Cache\CacheableMetadata;
-use Drupal\Core\Language\LanguageInterface;
/**
* Provides a test filter to merge with CacheableMetadata.
diff --git a/core/modules/forum/forum.module b/core/modules/forum/forum.module
index 7921a36..c82c167 100644
--- a/core/modules/forum/forum.module
+++ b/core/modules/forum/forum.module
@@ -7,7 +7,6 @@
use Drupal\comment\CommentInterface;
use Drupal\comment\Plugin\Field\FieldType\CommentItemInterface;
-use Drupal\Component\Utility\Xss;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Url;
use Drupal\Core\Form\FormStateInterface;
diff --git a/core/modules/forum/src/Form/Overview.php b/core/modules/forum/src/Form/Overview.php
index 5f9b6f3..720ee85 100644
--- a/core/modules/forum/src/Form/Overview.php
+++ b/core/modules/forum/src/Form/Overview.php
@@ -12,9 +12,7 @@ use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\Element;
use Drupal\Core\Url;
use Drupal\taxonomy\Form\OverviewTerms;
-use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
-use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
/*
diff --git a/core/modules/forum/src/Plugin/Block/ForumBlockBase.php b/core/modules/forum/src/Plugin/Block/ForumBlockBase.php
index 5e8fbeb..53b0727 100644
--- a/core/modules/forum/src/Plugin/Block/ForumBlockBase.php
+++ b/core/modules/forum/src/Plugin/Block/ForumBlockBase.php
@@ -11,7 +11,6 @@ use Drupal\Core\Access\AccessResult;
use Drupal\Core\Block\BlockBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Session\AccountInterface;
-use Drupal\Core\Cache\Cache;
use Drupal\Core\Url;
/**
diff --git a/core/modules/forum/src/Plugin/Validation/Constraint/ForumLeafConstraintValidator.php b/core/modules/forum/src/Plugin/Validation/Constraint/ForumLeafConstraintValidator.php
index f2d2400..10dd3cf 100644
--- a/core/modules/forum/src/Plugin/Validation/Constraint/ForumLeafConstraintValidator.php
+++ b/core/modules/forum/src/Plugin/Validation/Constraint/ForumLeafConstraintValidator.php
@@ -7,7 +7,6 @@
namespace Drupal\forum\Plugin\Validation\Constraint;
-use Drupal\Component\Utility\Unicode;
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintValidator;
diff --git a/core/modules/forum/src/Tests/ForumUninstallTest.php b/core/modules/forum/src/Tests/ForumUninstallTest.php
index d6186f0..8eb1345 100644
--- a/core/modules/forum/src/Tests/ForumUninstallTest.php
+++ b/core/modules/forum/src/Tests/ForumUninstallTest.php
@@ -8,10 +8,6 @@
namespace Drupal\forum\Tests;
use Drupal\comment\CommentInterface;
-use Drupal\comment\Plugin\Field\FieldType\CommentItemInterface;
-use Drupal\Core\DrupalKernel;
-use Drupal\Core\Session\UserSession;
-use Drupal\Core\Site\Settings;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\node\Entity\NodeType;
use Drupal\simpletest\WebTestBase;
diff --git a/core/modules/forum/src/Tests/Migrate/d7/MigrateForumSettingsTest.php b/core/modules/forum/src/Tests/Migrate/d7/MigrateForumSettingsTest.php
index 008ace0..9eb80e7 100644
--- a/core/modules/forum/src/Tests/Migrate/d7/MigrateForumSettingsTest.php
+++ b/core/modules/forum/src/Tests/Migrate/d7/MigrateForumSettingsTest.php
@@ -7,8 +7,6 @@
namespace Drupal\forum\Tests\Migrate\d7;
-use Drupal\migrate\Entity\Migration;
-use Drupal\migrate\MigrateExecutable;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
/**
diff --git a/core/modules/forum/tests/src/Unit/Breadcrumb/ForumListingBreadcrumbBuilderTest.php b/core/modules/forum/tests/src/Unit/Breadcrumb/ForumListingBreadcrumbBuilderTest.php
index b591394..36fd401 100644
--- a/core/modules/forum/tests/src/Unit/Breadcrumb/ForumListingBreadcrumbBuilderTest.php
+++ b/core/modules/forum/tests/src/Unit/Breadcrumb/ForumListingBreadcrumbBuilderTest.php
@@ -10,7 +10,6 @@ namespace Drupal\Tests\forum\Unit\Breadcrumb;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Link;
use Drupal\Tests\UnitTestCase;
-use Symfony\Cmf\Component\Routing\RouteObjectInterface;
use Symfony\Component\DependencyInjection\Container;
/**
diff --git a/core/modules/hal/src/Normalizer/NormalizerBase.php b/core/modules/hal/src/Normalizer/NormalizerBase.php
index 9b04977..e92a1e2 100644
--- a/core/modules/hal/src/Normalizer/NormalizerBase.php
+++ b/core/modules/hal/src/Normalizer/NormalizerBase.php
@@ -7,7 +7,6 @@
namespace Drupal\hal\Normalizer;
-use Drupal\serialization\EntityResolver\EntityResolverInterface;
use Drupal\serialization\Normalizer\NormalizerBase as SerializationNormalizerBase;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
diff --git a/core/modules/help/src/Plugin/Block/HelpBlock.php b/core/modules/help/src/Plugin/Block/HelpBlock.php
index abe3c25..0a29ddd 100644
--- a/core/modules/help/src/Plugin/Block/HelpBlock.php
+++ b/core/modules/help/src/Plugin/Block/HelpBlock.php
@@ -7,12 +7,10 @@
namespace Drupal\help\Plugin\Block;
-use Drupal\Core\Access\AccessResult;
use Drupal\Core\Block\BlockBase;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Routing\RouteMatchInterface;
-use Drupal\Core\Session\AccountInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\Request;
diff --git a/core/modules/image/image.field.inc b/core/modules/image/image.field.inc
index 49c6534..1bf4369 100644
--- a/core/modules/image/image.field.inc
+++ b/core/modules/image/image.field.inc
@@ -5,7 +5,6 @@
* Implement an image field, based on the file module's file field.
*/
-use Drupal\Component\Utility\NestedArray;
use Drupal\Component\Utility\Unicode;
use Drupal\Core\Render\Element;
diff --git a/core/modules/image/src/Form/ImageEffectAddForm.php b/core/modules/image/src/Form/ImageEffectAddForm.php
index e491d07..8bbe2c4 100644
--- a/core/modules/image/src/Form/ImageEffectAddForm.php
+++ b/core/modules/image/src/Form/ImageEffectAddForm.php
@@ -7,7 +7,6 @@
namespace Drupal\image\Form;
-use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\image\ImageEffectManager;
use Drupal\image\ImageStyleInterface;
diff --git a/core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php b/core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php
index aa24a95..5720415 100644
--- a/core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php
+++ b/core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php
@@ -12,10 +12,8 @@ use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\Core\Link;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
-use Drupal\Core\Routing\UrlGeneratorInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Url;
-use Drupal\Core\Utility\LinkGeneratorInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Cache\Cache;
diff --git a/core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatterBase.php b/core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatterBase.php
index 6f79497..899aa49 100644
--- a/core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatterBase.php
+++ b/core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatterBase.php
@@ -8,7 +8,6 @@
namespace Drupal\image\Plugin\Field\FieldFormatter;
use Drupal\Core\Field\EntityReferenceFieldItemListInterface;
-use Drupal\Core\Language\LanguageInterface;
use Drupal\field\FieldConfigInterface;
use Drupal\file\Plugin\Field\FieldFormatter\FileFormatterBase;
diff --git a/core/modules/image/src/Plugin/migrate/process/d6/ImageCacheActions.php b/core/modules/image/src/Plugin/migrate/process/d6/ImageCacheActions.php
index deb9934..30e4dec 100644
--- a/core/modules/image/src/Plugin/migrate/process/d6/ImageCacheActions.php
+++ b/core/modules/image/src/Plugin/migrate/process/d6/ImageCacheActions.php
@@ -8,7 +8,6 @@
namespace Drupal\image\Plugin\migrate\process\d6;
use Drupal\migrate\MigrateExecutableInterface;
-use Drupal\migrate\MigrateSkipRowException;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row;
diff --git a/core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php b/core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php
index 1de0607..81c1628 100644
--- a/core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php
+++ b/core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php
@@ -8,7 +8,6 @@
namespace Drupal\image\Tests;
use Drupal\simpletest\WebTestBase;
-use Symfony\Component\HttpFoundation\Request;
/**
* Tests the functions for generating paths and URLs for image styles.
diff --git a/core/modules/image/src/Tests/Migrate/d6/MigrateImageCacheTest.php b/core/modules/image/src/Tests/Migrate/d6/MigrateImageCacheTest.php
index 55cdc27..5e1a22c 100644
--- a/core/modules/image/src/Tests/Migrate/d6/MigrateImageCacheTest.php
+++ b/core/modules/image/src/Tests/Migrate/d6/MigrateImageCacheTest.php
@@ -9,9 +9,7 @@ namespace Drupal\image\Tests\Migrate\d6;
use Drupal\Core\Database\Database;
use Drupal\image\Entity\ImageStyle;
-use \Drupal\image\ConfigurableImageEffectBase;
use Drupal\migrate\Entity\MigrationInterface;
-use Drupal\migrate\MigrateException;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
/**
diff --git a/core/modules/language/src/ConfigurableLanguageInterface.php b/core/modules/language/src/ConfigurableLanguageInterface.php
index 401848b..9106df5 100644
--- a/core/modules/language/src/ConfigurableLanguageInterface.php
+++ b/core/modules/language/src/ConfigurableLanguageInterface.php
@@ -8,7 +8,6 @@
namespace Drupal\language;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
-use Drupal\Core\Language\Language;
use Drupal\Core\Language\LanguageInterface;
/**
diff --git a/core/modules/language/src/ConfigurableLanguageManagerInterface.php b/core/modules/language/src/ConfigurableLanguageManagerInterface.php
index 8f78de7..57d365d 100644
--- a/core/modules/language/src/ConfigurableLanguageManagerInterface.php
+++ b/core/modules/language/src/ConfigurableLanguageManagerInterface.php
@@ -9,7 +9,6 @@ namespace Drupal\language;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Language\LanguageManagerInterface;
-use Symfony\Component\HttpFoundation\Request;
/**
* Common interface for language negotiation services.
diff --git a/core/modules/language/src/Form/LanguageAddForm.php b/core/modules/language/src/Form/LanguageAddForm.php
index d43927b..964883c 100644
--- a/core/modules/language/src/Form/LanguageAddForm.php
+++ b/core/modules/language/src/Form/LanguageAddForm.php
@@ -11,8 +11,6 @@ use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Language\LanguageManager;
use Drupal\language\Entity\ConfigurableLanguage;
-use Drupal\language\Form\LanguageFormBase;
-use Drupal\Core\Language\Language;
/**
* Controller for language addition forms.
diff --git a/core/modules/language/src/Form/LanguageDeleteForm.php b/core/modules/language/src/Form/LanguageDeleteForm.php
index 3dfdb35..9810f2c 100644
--- a/core/modules/language/src/Form/LanguageDeleteForm.php
+++ b/core/modules/language/src/Form/LanguageDeleteForm.php
@@ -8,7 +8,6 @@
namespace Drupal\language\Form;
use Drupal\Core\Entity\EntityDeleteForm;
-use Drupal\Core\Form\FormStateInterface;
/**
* Defines a confirmation form for deleting a language entity.
diff --git a/core/modules/language/src/Form/LanguageEditForm.php b/core/modules/language/src/Form/LanguageEditForm.php
index 79a3a17..bb5abde 100644
--- a/core/modules/language/src/Form/LanguageEditForm.php
+++ b/core/modules/language/src/Form/LanguageEditForm.php
@@ -8,7 +8,6 @@
namespace Drupal\language\Form;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\language\Form\LanguageFormBase;
/**
* Controller for language edit forms.
diff --git a/core/modules/language/src/Form/NegotiationBrowserDeleteForm.php b/core/modules/language/src/Form/NegotiationBrowserDeleteForm.php
index 857cf32..2877d4d 100644
--- a/core/modules/language/src/Form/NegotiationBrowserDeleteForm.php
+++ b/core/modules/language/src/Form/NegotiationBrowserDeleteForm.php
@@ -11,7 +11,6 @@ use Drupal\Core\Form\ConfigFormBaseTrait;
use Drupal\Core\Form\ConfirmFormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
-use Symfony\Component\HttpFoundation\Request;
/**
* Defines a confirmation form for deleting a browser language negotiation mapping.
diff --git a/core/modules/language/src/Form/NegotiationConfigureForm.php b/core/modules/language/src/Form/NegotiationConfigureForm.php
index 7f23045..a5b79a7 100644
--- a/core/modules/language/src/Form/NegotiationConfigureForm.php
+++ b/core/modules/language/src/Form/NegotiationConfigureForm.php
@@ -9,7 +9,6 @@ namespace Drupal\language\Form;
use Drupal\Core\Block\BlockManagerInterface;
use Drupal\Component\Utility\Unicode;
-use Drupal\Component\Utility\Xss;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Extension\ThemeHandlerInterface;
diff --git a/core/modules/language/src/Tests/Condition/LanguageConditionTest.php b/core/modules/language/src/Tests/Condition/LanguageConditionTest.php
index 9cd3cf9..e976ae0 100644
--- a/core/modules/language/src/Tests/Condition/LanguageConditionTest.php
+++ b/core/modules/language/src/Tests/Condition/LanguageConditionTest.php
@@ -9,7 +9,6 @@ namespace Drupal\language\Tests\Condition;
use Drupal\language\Entity\ConfigurableLanguage;
use Drupal\simpletest\KernelTestBase;
-use Drupal\Core\Condition\ConditionManager;
/**
* Tests that the language condition, provided by the language module, is
diff --git a/core/modules/language/src/Tests/LanguageBrowserDetectionTest.php b/core/modules/language/src/Tests/LanguageBrowserDetectionTest.php
index c66fce7..845528b 100644
--- a/core/modules/language/src/Tests/LanguageBrowserDetectionTest.php
+++ b/core/modules/language/src/Tests/LanguageBrowserDetectionTest.php
@@ -7,10 +7,7 @@
namespace Drupal\language\Tests;
-use Drupal\Component\Utility\UserAgent;
-use Drupal\Core\Language\Language;
use Drupal\simpletest\WebTestBase;
-use Symfony\Component\HttpFoundation\Request;
/**
* Tests browser language detection.
diff --git a/core/modules/language/src/Tests/LanguageDependencyInjectionTest.php b/core/modules/language/src/Tests/LanguageDependencyInjectionTest.php
index 8b289ab..fc13a61 100644
--- a/core/modules/language/src/Tests/LanguageDependencyInjectionTest.php
+++ b/core/modules/language/src/Tests/LanguageDependencyInjectionTest.php
@@ -7,8 +7,6 @@
namespace Drupal\language\Tests;
-use Drupal\Core\DependencyInjection\ContainerBuilder;
-use Drupal\Core\Language\Language;
use Drupal\language\Entity\ConfigurableLanguage;
use Drupal\language\Exception\DeleteDefaultLanguageException;
diff --git a/core/modules/language/tests/language_test/src/Plugin/LanguageNegotiation/LanguageNegotiationTestTs.php b/core/modules/language/tests/language_test/src/Plugin/LanguageNegotiation/LanguageNegotiationTestTs.php
index c9d1e9c..4efde9f 100644
--- a/core/modules/language/tests/language_test/src/Plugin/LanguageNegotiation/LanguageNegotiationTestTs.php
+++ b/core/modules/language/tests/language_test/src/Plugin/LanguageNegotiation/LanguageNegotiationTestTs.php
@@ -7,8 +7,6 @@
namespace Drupal\language_test\Plugin\LanguageNegotiation;
-use Symfony\Component\HttpFoundation\Request;
-
/**
* Class for identifying language from a selected language.
*
diff --git a/core/modules/language/tests/src/Unit/ConfigurableLanguageUnitTest.php b/core/modules/language/tests/src/Unit/ConfigurableLanguageUnitTest.php
index 44967ad..02e7457 100644
--- a/core/modules/language/tests/src/Unit/ConfigurableLanguageUnitTest.php
+++ b/core/modules/language/tests/src/Unit/ConfigurableLanguageUnitTest.php
@@ -6,9 +6,6 @@
namespace Drupal\Tests\language\Unit;
-use Drupal\Core\DependencyInjection\ContainerBuilder;
-use Drupal\Core\Entity\EntityType;
-use Drupal\Core\Language\Language;
use Drupal\language\Entity\ConfigurableLanguage;
use Drupal\Tests\UnitTestCase;
diff --git a/core/modules/language/tests/src/Unit/LanguageNegotiationUrlTest.php b/core/modules/language/tests/src/Unit/LanguageNegotiationUrlTest.php
index d0d946e..f1d2914 100644
--- a/core/modules/language/tests/src/Unit/LanguageNegotiationUrlTest.php
+++ b/core/modules/language/tests/src/Unit/LanguageNegotiationUrlTest.php
@@ -10,7 +10,6 @@ namespace Drupal\Tests\language\Unit {
use Drupal\Core\Cache\Cache;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Render\BubbleableMetadata;
-use Drupal\Core\Session\UserSession;
use Drupal\Tests\UnitTestCase;
use Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationUrl;
use Symfony\Component\DependencyInjection\ContainerBuilder;
diff --git a/core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php b/core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php
index aeb208c..a7e104b 100644
--- a/core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php
+++ b/core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php
@@ -8,7 +8,6 @@
namespace Drupal\link\Plugin\Field\FieldFormatter;
use Drupal\Component\Utility\Unicode;
-use Drupal\Component\Utility\UrlHelper;
use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Field\FormatterBase;
@@ -18,7 +17,6 @@ use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Url;
use Drupal\link\LinkItemInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
-use Symfony\Component\HttpFoundation\Request;
/**
* Plugin implementation of the 'link' formatter.
diff --git a/core/modules/link/src/Plugin/Field/FieldType/LinkItem.php b/core/modules/link/src/Plugin/Field/FieldType/LinkItem.php
index 4c0467c..5c21ace 100644
--- a/core/modules/link/src/Plugin/Field/FieldType/LinkItem.php
+++ b/core/modules/link/src/Plugin/Field/FieldType/LinkItem.php
@@ -8,7 +8,6 @@
namespace Drupal\link\Plugin\Field\FieldType;
use Drupal\Component\Utility\Random;
-use Drupal\Component\Utility\UrlHelper;
use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\Core\Field\FieldItemBase;
use Drupal\Core\Field\FieldStorageDefinitionInterface;
diff --git a/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php b/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php
index b2470e6..9c97caa 100644
--- a/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php
+++ b/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php
@@ -7,14 +7,11 @@
namespace Drupal\link\Plugin\Field\FieldWidget;
-use Drupal\Component\Utility\UrlHelper;
use Drupal\Core\Entity\Element\EntityAutocomplete;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Field\WidgetBase;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Url;
use Drupal\link\LinkItemInterface;
-use Symfony\Component\Routing\Exception\RouteNotFoundException;
use Symfony\Component\Validator\ConstraintViolation;
use Symfony\Component\Validator\ConstraintViolationListInterface;
diff --git a/core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkAccessConstraintValidatorTest.php b/core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkAccessConstraintValidatorTest.php
index 82db60c..7089e47 100644
--- a/core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkAccessConstraintValidatorTest.php
+++ b/core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkAccessConstraintValidatorTest.php
@@ -7,7 +7,6 @@
namespace Drupal\Tests\link\Unit\Plugin\Validation\Constraint;
-use Drupal\Core\Url;
use Drupal\link\Plugin\Validation\Constraint\LinkAccessConstraint;
use Drupal\link\Plugin\Validation\Constraint\LinkAccessConstraintValidator;
use Drupal\Tests\UnitTestCase;
diff --git a/core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkNotExistingInternalConstraintValidatorTest.php b/core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkNotExistingInternalConstraintValidatorTest.php
index 2325306..aa2e527 100644
--- a/core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkNotExistingInternalConstraintValidatorTest.php
+++ b/core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkNotExistingInternalConstraintValidatorTest.php
@@ -7,7 +7,6 @@
namespace Drupal\Tests\link\Unit\Plugin\Validation\Constraint;
-use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\Url;
use Drupal\link\Plugin\Validation\Constraint\LinkNotExistingInternalConstraint;
use Drupal\link\Plugin\Validation\Constraint\LinkNotExistingInternalConstraintValidator;
diff --git a/core/modules/locale/locale.install b/core/modules/locale/locale.install
index 94b5a44..0755104 100644
--- a/core/modules/locale/locale.install
+++ b/core/modules/locale/locale.install
@@ -6,8 +6,6 @@
*/
use Drupal\Core\Url;
-use Drupal\Core\Language\Language;
-use Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationSelected;
/**
* Implements hook_install().
diff --git a/core/modules/locale/locale.module b/core/modules/locale/locale.module
index 387d0c3..ca8df47 100644
--- a/core/modules/locale/locale.module
+++ b/core/modules/locale/locale.module
@@ -16,11 +16,8 @@ use Drupal\Component\Utility\UrlHelper;
use Drupal\Component\Utility\Xss;
use Drupal\Core\Url;
use Drupal\Core\Asset\AttachedAssetsInterface;
-use Drupal\Core\Cache\Cache;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Language\Language;
use Drupal\Core\Routing\RouteMatchInterface;
-use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Language\LanguageInterface;
use Drupal\language\ConfigurableLanguageInterface;
use Drupal\Component\Utility\Crypt;
diff --git a/core/modules/locale/locale.pages.inc b/core/modules/locale/locale.pages.inc
index 83bdebb..d4776d5 100644
--- a/core/modules/locale/locale.pages.inc
+++ b/core/modules/locale/locale.pages.inc
@@ -5,13 +5,9 @@
* Interface translation summary, editing and deletion user interfaces.
*/
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Url;
use Drupal\Core\Render\Element;
-use Drupal\locale\SourceString;
-use Drupal\locale\TranslationString;
use Symfony\Component\HttpFoundation\RedirectResponse;
-use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
/**
* Page callback: Checks for translation updates and displays the status.
diff --git a/core/modules/locale/src/Controller/LocaleController.php b/core/modules/locale/src/Controller/LocaleController.php
index 0638b08..9216296 100644
--- a/core/modules/locale/src/Controller/LocaleController.php
+++ b/core/modules/locale/src/Controller/LocaleController.php
@@ -7,7 +7,6 @@
namespace Drupal\locale\Controller;
use Drupal\Core\Controller\ControllerBase;
-use Symfony\Component\HttpFoundation\RedirectResponse;
/**
* Return response for manual check translations.
diff --git a/core/modules/locale/src/Gettext.php b/core/modules/locale/src/Gettext.php
index dfefe90..4d5b65e 100644
--- a/core/modules/locale/src/Gettext.php
+++ b/core/modules/locale/src/Gettext.php
@@ -8,8 +8,6 @@
namespace Drupal\locale;
use Drupal\Component\Gettext\PoStreamReader;
-use Drupal\Component\Gettext\PoMemoryWriter;
-use Drupal\locale\PoDatabaseWriter;
/**
* Static class providing Drupal specific Gettext functionality.
diff --git a/core/modules/locale/src/LocaleConfigManager.php b/core/modules/locale/src/LocaleConfigManager.php
index 1312f6d..cab8816 100644
--- a/core/modules/locale/src/LocaleConfigManager.php
+++ b/core/modules/locale/src/LocaleConfigManager.php
@@ -9,7 +9,6 @@ namespace Drupal\locale;
use Drupal\Component\Utility\NestedArray;
use Drupal\Core\Config\ConfigFactoryInterface;
-use Drupal\Core\Config\InstallStorage;
use Drupal\Core\Config\StorageInterface;
use Drupal\Core\Config\TypedConfigManagerInterface;
use Drupal\Core\StringTranslation\TranslatableMarkup;
diff --git a/core/modules/locale/src/PoDatabaseReader.php b/core/modules/locale/src/PoDatabaseReader.php
index 7e7519e..86bf655 100644
--- a/core/modules/locale/src/PoDatabaseReader.php
+++ b/core/modules/locale/src/PoDatabaseReader.php
@@ -10,7 +10,6 @@ namespace Drupal\locale;
use Drupal\Component\Gettext\PoHeader;
use Drupal\Component\Gettext\PoItem;
use Drupal\Component\Gettext\PoReaderInterface;
-use Drupal\locale\TranslationString;
/**
* Gettext PO reader working with the locale module database.
diff --git a/core/modules/locale/src/PoDatabaseWriter.php b/core/modules/locale/src/PoDatabaseWriter.php
index 27b9b78..c79944c 100644
--- a/core/modules/locale/src/PoDatabaseWriter.php
+++ b/core/modules/locale/src/PoDatabaseWriter.php
@@ -11,8 +11,6 @@ use Drupal\Component\Gettext\PoHeader;
use Drupal\Component\Gettext\PoItem;
use Drupal\Component\Gettext\PoReaderInterface;
use Drupal\Component\Gettext\PoWriterInterface;
-use Drupal\locale\SourceString;
-use Drupal\locale\TranslationString;
/**
* Gettext PO writer working with the locale module database.
diff --git a/core/modules/locale/src/StreamWrapper/TranslationsStream.php b/core/modules/locale/src/StreamWrapper/TranslationsStream.php
index eaa7122..7866ad9 100644
--- a/core/modules/locale/src/StreamWrapper/TranslationsStream.php
+++ b/core/modules/locale/src/StreamWrapper/TranslationsStream.php
@@ -8,7 +8,6 @@
namespace Drupal\locale\StreamWrapper;
use Drupal\Core\Annotation\StreamWrapper;
-use Drupal\Core\Annotation\Translation;
use Drupal\Core\StreamWrapper\LocalStream;
use Drupal\Core\StreamWrapper\StreamWrapperInterface;
diff --git a/core/modules/locale/src/StringBase.php b/core/modules/locale/src/StringBase.php
index d0340ef..8113c1f 100644
--- a/core/modules/locale/src/StringBase.php
+++ b/core/modules/locale/src/StringBase.php
@@ -7,8 +7,6 @@
namespace Drupal\locale;
-use Drupal\Component\Utility\SafeMarkup;
-
/**
* Defines the locale string base class.
*
diff --git a/core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php b/core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php
index 6605b3b..b0450e5 100644
--- a/core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php
+++ b/core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php
@@ -10,7 +10,6 @@ namespace Drupal\locale\Tests;
use Drupal\locale\Locale;
use Drupal\simpletest\WebTestBase;
use Drupal\language\Entity\ConfigurableLanguage;
-use Drupal\Core\Url;
/**
* Tests translation update's effects on configuration translations.
diff --git a/core/modules/locale/src/Tests/LocaleConfigTranslationTest.php b/core/modules/locale/src/Tests/LocaleConfigTranslationTest.php
index 588e779..e03f061 100644
--- a/core/modules/locale/src/Tests/LocaleConfigTranslationTest.php
+++ b/core/modules/locale/src/Tests/LocaleConfigTranslationTest.php
@@ -7,7 +7,6 @@
namespace Drupal\locale\Tests;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\simpletest\WebTestBase;
use Drupal\core\language\languageInterface;
diff --git a/core/modules/locale/src/Tests/LocaleUpdateBase.php b/core/modules/locale/src/Tests/LocaleUpdateBase.php
index 5b03e95..41922bb 100644
--- a/core/modules/locale/src/Tests/LocaleUpdateBase.php
+++ b/core/modules/locale/src/Tests/LocaleUpdateBase.php
@@ -8,7 +8,6 @@
namespace Drupal\locale\Tests;
use Drupal\Core\StreamWrapper\PublicStream;
-use Drupal\Core\Url;
use Drupal\simpletest\WebTestBase;
use Drupal\Component\Utility\SafeMarkup;
diff --git a/core/modules/menu_link_content/src/Tests/LinksTest.php b/core/modules/menu_link_content/src/Tests/LinksTest.php
index 81d48a4..29a8d97 100644
--- a/core/modules/menu_link_content/src/Tests/LinksTest.php
+++ b/core/modules/menu_link_content/src/Tests/LinksTest.php
@@ -8,7 +8,6 @@
namespace Drupal\menu_link_content\Tests;
use Drupal\Component\Utility\SafeMarkup;
-use Drupal\locale\TranslationString;
use Drupal\simpletest\WebTestBase;
/**
diff --git a/core/modules/menu_ui/menu_ui.module b/core/modules/menu_ui/menu_ui.module
index 6f31eb5..3baf117 100644
--- a/core/modules/menu_ui/menu_ui.module
+++ b/core/modules/menu_ui/menu_ui.module
@@ -20,7 +20,6 @@ use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\menu_link_content\Entity\MenuLinkContent;
use Drupal\node\NodeTypeInterface;
use Drupal\system\Entity\Menu;
-use Symfony\Component\HttpFoundation\JsonResponse;
use Drupal\node\NodeInterface;
/**
diff --git a/core/modules/menu_ui/src/MenuForm.php b/core/modules/menu_ui/src/MenuForm.php
index efd1451..0932cdb 100644
--- a/core/modules/menu_ui/src/MenuForm.php
+++ b/core/modules/menu_ui/src/MenuForm.php
@@ -19,7 +19,6 @@ use Drupal\Core\Menu\MenuLinkTreeElement;
use Drupal\Core\Menu\MenuLinkTreeInterface;
use Drupal\Core\Menu\MenuTreeParameters;
use Drupal\Core\Render\Element;
-use Drupal\Core\Routing\UrlGeneratorTrait;
use Drupal\Core\Url;
use Drupal\Core\Utility\LinkGeneratorInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
diff --git a/core/modules/menu_ui/src/MenuListBuilder.php b/core/modules/menu_ui/src/MenuListBuilder.php
index be9fc1e..406a60f 100644
--- a/core/modules/menu_ui/src/MenuListBuilder.php
+++ b/core/modules/menu_ui/src/MenuListBuilder.php
@@ -7,7 +7,6 @@
namespace Drupal\menu_ui;
-use Drupal\Component\Utility\Xss;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface;
diff --git a/core/modules/menu_ui/src/Tests/MenuLanguageTest.php b/core/modules/menu_ui/src/Tests/MenuLanguageTest.php
index c35c221..b204e47 100644
--- a/core/modules/menu_ui/src/Tests/MenuLanguageTest.php
+++ b/core/modules/menu_ui/src/Tests/MenuLanguageTest.php
@@ -12,7 +12,6 @@ namespace Drupal\menu_ui\Tests;
use Drupal\Component\Utility\Unicode;
use Drupal\language\Entity\ConfigurableLanguage;
use Drupal\language\Entity\ContentLanguageSettings;
-use Drupal\system\Entity\Menu;
/**
* Create menu and menu links in non-English language, and edit language
diff --git a/core/modules/menu_ui/src/Tests/MenuTest.php b/core/modules/menu_ui/src/Tests/MenuTest.php
index 326db81..f8c26c9 100644
--- a/core/modules/menu_ui/src/Tests/MenuTest.php
+++ b/core/modules/menu_ui/src/Tests/MenuTest.php
@@ -10,7 +10,6 @@ namespace Drupal\menu_ui\Tests;
use Drupal\block\Entity\Block;
use Drupal\Component\Serialization\Json;
use Drupal\Component\Utility\Unicode;
-use Drupal\Core\Cache\Cache;
use Drupal\Core\Menu\MenuLinkInterface;
use Drupal\Core\Url;
use Drupal\menu_link_content\Entity\MenuLinkContent;
diff --git a/core/modules/migrate/src/Plugin/migrate/destination/EntityFieldInstance.php b/core/modules/migrate/src/Plugin/migrate/destination/EntityFieldInstance.php
index 77297e8..c6cd7e4 100644
--- a/core/modules/migrate/src/Plugin/migrate/destination/EntityFieldInstance.php
+++ b/core/modules/migrate/src/Plugin/migrate/destination/EntityFieldInstance.php
@@ -7,8 +7,6 @@
namespace Drupal\migrate\Plugin\migrate\destination;
-use Drupal\migrate\Row;
-
/**
* @MigrateDestination(
* id = "entity:field_config"
diff --git a/core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php b/core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php
index bc7a854..a7e3e89 100644
--- a/core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php
+++ b/core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php
@@ -10,7 +10,6 @@ namespace Drupal\migrate\Plugin\migrate\source;
use Drupal\Core\Plugin\PluginBase;
use Drupal\migrate\Entity\MigrationInterface;
use Drupal\migrate\MigrateException;
-use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\MigrateSkipRowException;
use Drupal\migrate\Plugin\MigrateIdMapInterface;
use Drupal\migrate\Plugin\MigrateSourceInterface;
diff --git a/core/modules/migrate/src/Tests/MigrateTestBase.php b/core/modules/migrate/src/Tests/MigrateTestBase.php
index 248a059..1fda383 100644
--- a/core/modules/migrate/src/Tests/MigrateTestBase.php
+++ b/core/modules/migrate/src/Tests/MigrateTestBase.php
@@ -9,7 +9,6 @@ namespace Drupal\migrate\Tests;
use Drupal\Core\Database\Database;
use Drupal\migrate\Entity\Migration;
-use Drupal\migrate\Entity\MigrationInterface;
use Drupal\migrate\MigrateExecutable;
use Drupal\migrate\MigrateMessageInterface;
use Drupal\migrate\Row;
diff --git a/core/modules/migrate/tests/src/Unit/process/GetTest.php b/core/modules/migrate/tests/src/Unit/process/GetTest.php
index bdcf27c..dc8ea70 100644
--- a/core/modules/migrate/tests/src/Unit/process/GetTest.php
+++ b/core/modules/migrate/tests/src/Unit/process/GetTest.php
@@ -7,7 +7,6 @@
namespace Drupal\Tests\migrate\Unit\process;
use Drupal\migrate\Plugin\migrate\process\TestGet;
-use Drupal\migrate\Row;
/**
* Tests the get process plugin.
diff --git a/core/modules/migrate/tests/src/Unit/process/IteratorTest.php b/core/modules/migrate/tests/src/Unit/process/IteratorTest.php
index 69e707d..fe34095 100644
--- a/core/modules/migrate/tests/src/Unit/process/IteratorTest.php
+++ b/core/modules/migrate/tests/src/Unit/process/IteratorTest.php
@@ -9,7 +9,6 @@ namespace Drupal\Tests\migrate\Unit\process;
use Drupal\migrate\MigrateExecutable;
use Drupal\migrate\Plugin\migrate\process\Get;
use Drupal\migrate\Plugin\migrate\process\Iterator;
-use Drupal\migrate\Plugin\migrate\process\StaticMap;
use Drupal\migrate\Row;
use Drupal\Tests\migrate\Unit\MigrateTestCase;
diff --git a/core/modules/node/node.admin.inc b/core/modules/node/node.admin.inc
index 280fd81..5566566 100644
--- a/core/modules/node/node.admin.inc
+++ b/core/modules/node/node.admin.inc
@@ -5,7 +5,6 @@
* Content administration and module settings user interface.
*/
-use Drupal\Core\Language\Language;
use Drupal\node\NodeInterface;
use Drupal\node\Entity\Node;
diff --git a/core/modules/node/node.module b/core/modules/node/node.module
index 0eaab5d..182def1 100644
--- a/core/modules/node/node.module
+++ b/core/modules/node/node.module
@@ -8,7 +8,6 @@
* API pattern.
*/
-use Drupal\Component\Utility\Html;
use Drupal\Component\Utility\Xss;
use Drupal\Core\Access\AccessResult;
use Drupal\Core\Cache\Cache;
diff --git a/core/modules/node/node.views.inc b/core/modules/node/node.views.inc
index 511d72e..e353fc0 100644
--- a/core/modules/node/node.views.inc
+++ b/core/modules/node/node.views.inc
@@ -5,9 +5,6 @@
* Provide views data for node.module.
*/
-use Drupal\views\Analyzer;
-use Drupal\views\ViewExecutable;
-
/**
* Implements hook_views_wizard().
*/
diff --git a/core/modules/node/src/Controller/NodeViewController.php b/core/modules/node/src/Controller/NodeViewController.php
index fc43770..ee84e6b 100644
--- a/core/modules/node/src/Controller/NodeViewController.php
+++ b/core/modules/node/src/Controller/NodeViewController.php
@@ -7,7 +7,6 @@
namespace Drupal\node\Controller;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\Controller\EntityViewController;
diff --git a/core/modules/node/src/Form/NodeRevisionDeleteForm.php b/core/modules/node/src/Form/NodeRevisionDeleteForm.php
index 352cef0..6780e24 100644
--- a/core/modules/node/src/Form/NodeRevisionDeleteForm.php
+++ b/core/modules/node/src/Form/NodeRevisionDeleteForm.php
@@ -12,7 +12,6 @@ use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Form\ConfirmFormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
-use Drupal\node\NodeInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
diff --git a/core/modules/node/src/NodeForm.php b/core/modules/node/src/NodeForm.php
index 36cfc74..bb6c49d 100644
--- a/core/modules/node/src/NodeForm.php
+++ b/core/modules/node/src/NodeForm.php
@@ -10,7 +10,6 @@ namespace Drupal\node;
use Drupal\Core\Entity\ContentEntityForm;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\user\Entity\User;
use Drupal\user\PrivateTempStoreFactory;
use Symfony\Component\DependencyInjection\ContainerInterface;
diff --git a/core/modules/node/src/NodeGrantDatabaseStorage.php b/core/modules/node/src/NodeGrantDatabaseStorage.php
index f6c56db..6b6f280 100644
--- a/core/modules/node/src/NodeGrantDatabaseStorage.php
+++ b/core/modules/node/src/NodeGrantDatabaseStorage.php
@@ -11,12 +11,9 @@ use Drupal\Core\Access\AccessResult;
use Drupal\Core\Database\Connection;
use Drupal\Core\Database\Query\SelectInterface;
use Drupal\Core\Database\Query\Condition;
-use Drupal\Core\Entity\ContentEntityBase;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Language\LanguageManagerInterface;
use Drupal\Core\Session\AccountInterface;
-use Drupal\user\Entity\User;
-use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Defines a controller class that handles the node grants system.
diff --git a/core/modules/node/src/NodeInterface.php b/core/modules/node/src/NodeInterface.php
index 839c3d2..241fb1a 100644
--- a/core/modules/node/src/NodeInterface.php
+++ b/core/modules/node/src/NodeInterface.php
@@ -10,7 +10,6 @@ namespace Drupal\node;
use Drupal\user\EntityOwnerInterface;
use Drupal\Core\Entity\EntityChangedInterface;
use Drupal\Core\Entity\ContentEntityInterface;
-use Drupal\user\UserInterface;
/**
* Provides an interface defining a node entity.
diff --git a/core/modules/node/src/NodeViewBuilder.php b/core/modules/node/src/NodeViewBuilder.php
index dd7c045..1ee05f6 100644
--- a/core/modules/node/src/NodeViewBuilder.php
+++ b/core/modules/node/src/NodeViewBuilder.php
@@ -11,7 +11,6 @@ use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityViewBuilder;
use Drupal\node\Entity\Node;
-use Drupal\user\Entity\User;
/**
* Render controller for nodes.
diff --git a/core/modules/node/src/ParamConverter/NodePreviewConverter.php b/core/modules/node/src/ParamConverter/NodePreviewConverter.php
index 6746fae..adbf2af 100644
--- a/core/modules/node/src/ParamConverter/NodePreviewConverter.php
+++ b/core/modules/node/src/ParamConverter/NodePreviewConverter.php
@@ -7,7 +7,6 @@
namespace Drupal\node\ParamConverter;
-use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\user\PrivateTempStoreFactory;
use Symfony\Component\Routing\Route;
use Drupal\Core\ParamConverter\ParamConverterInterface;
diff --git a/core/modules/node/src/Plugin/Block/SyndicateBlock.php b/core/modules/node/src/Plugin/Block/SyndicateBlock.php
index 1e40332..c723896 100644
--- a/core/modules/node/src/Plugin/Block/SyndicateBlock.php
+++ b/core/modules/node/src/Plugin/Block/SyndicateBlock.php
@@ -9,8 +9,6 @@ namespace Drupal\node\Plugin\Block;
use Drupal\Core\Access\AccessResult;
use Drupal\Core\Block\BlockBase;
-use Drupal\Core\Cache\Cache;
-use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Session\AccountInterface;
/**
diff --git a/core/modules/node/src/Plugin/views/field/NodeBulkForm.php b/core/modules/node/src/Plugin/views/field/NodeBulkForm.php
index 1f8a247..5f8e04e 100644
--- a/core/modules/node/src/Plugin/views/field/NodeBulkForm.php
+++ b/core/modules/node/src/Plugin/views/field/NodeBulkForm.php
@@ -7,7 +7,6 @@
namespace Drupal\node\Plugin\views\field;
-use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\system\Plugin\views\field\BulkForm;
/**
diff --git a/core/modules/node/src/Plugin/views/row/Rss.php b/core/modules/node/src/Plugin/views/row/Rss.php
index 2967cce..ae2b871 100644
--- a/core/modules/node/src/Plugin/views/row/Rss.php
+++ b/core/modules/node/src/Plugin/views/row/Rss.php
@@ -9,8 +9,6 @@ namespace Drupal\node\Plugin\views\row;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\views\Plugin\views\row\RssPluginBase;
-use Symfony\Component\DependencyInjection\ContainerInterface;
-use Drupal\node\NodeStorageInterface;
/**
* Plugin which performs a node_view on the resulting object
diff --git a/core/modules/node/src/Tests/Migrate/d6/MigrateNodeRevisionTest.php b/core/modules/node/src/Tests/Migrate/d6/MigrateNodeRevisionTest.php
index 73d55a3..b8ee0c2 100644
--- a/core/modules/node/src/Tests/Migrate/d6/MigrateNodeRevisionTest.php
+++ b/core/modules/node/src/Tests/Migrate/d6/MigrateNodeRevisionTest.php
@@ -7,8 +7,6 @@
namespace Drupal\node\Tests\Migrate\d6;
-use Drupal\migrate\Entity\Migration;
-
/**
* Node content revisions migration.
*
diff --git a/core/modules/node/src/Tests/Migrate/d6/MigrateNodeTestBase.php b/core/modules/node/src/Tests/Migrate/d6/MigrateNodeTestBase.php
index 9bf182e..f88fba2 100644
--- a/core/modules/node/src/Tests/Migrate/d6/MigrateNodeTestBase.php
+++ b/core/modules/node/src/Tests/Migrate/d6/MigrateNodeTestBase.php
@@ -7,7 +7,6 @@
namespace Drupal\node\Tests\Migrate\d6;
-use Drupal\migrate\Entity\MigrationInterface;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\user\Entity\User;
diff --git a/core/modules/node/src/Tests/NodeBodyFieldStorageTest.php b/core/modules/node/src/Tests/NodeBodyFieldStorageTest.php
index 33aa98e..ddf7559 100644
--- a/core/modules/node/src/Tests/NodeBodyFieldStorageTest.php
+++ b/core/modules/node/src/Tests/NodeBodyFieldStorageTest.php
@@ -7,13 +7,10 @@
namespace Drupal\node\Tests;
-use Drupal\Core\Field\Entity\BaseFieldOverride;
use Drupal\field\Entity\FieldConfig;
use Drupal\field\Entity\FieldStorageConfig;
-use Drupal\node\Entity\Node;
use Drupal\node\Entity\NodeType;
use Drupal\simpletest\KernelTestBase;
-use Drupal\system\Tests\Entity\EntityUnitTestBase;
/**
* Tests node body field storage.
diff --git a/core/modules/node/src/Tests/NodeCacheTagsTest.php b/core/modules/node/src/Tests/NodeCacheTagsTest.php
index 8144ba2..5940d4c 100644
--- a/core/modules/node/src/Tests/NodeCacheTagsTest.php
+++ b/core/modules/node/src/Tests/NodeCacheTagsTest.php
@@ -9,7 +9,6 @@ namespace Drupal\node\Tests;
use Drupal\Core\Entity\EntityInterface;
use Drupal\system\Tests\Entity\EntityWithUriCacheTagsTestBase;
-use Drupal\user\Entity\Role;
/**
* Tests the Node entity's cache tags.
diff --git a/core/modules/node/src/Tests/Views/NodeFieldTokensTest.php b/core/modules/node/src/Tests/Views/NodeFieldTokensTest.php
index 3aef9b2..16a52bf 100644
--- a/core/modules/node/src/Tests/Views/NodeFieldTokensTest.php
+++ b/core/modules/node/src/Tests/Views/NodeFieldTokensTest.php
@@ -7,9 +7,6 @@
namespace Drupal\node\Tests\Views;
-use Drupal\views\Views;
-use Drupal\node\Tests\Views\NodeTestBase;
-
/**
* Tests replacement of Views tokens supplied by the Node module.
*
diff --git a/core/modules/options/src/Plugin/views/argument/StringListField.php b/core/modules/options/src/Plugin/views/argument/StringListField.php
index ee26d43..abd02e4 100644
--- a/core/modules/options/src/Plugin/views/argument/StringListField.php
+++ b/core/modules/options/src/Plugin/views/argument/StringListField.php
@@ -14,7 +14,6 @@ use Drupal\views\FieldAPIHandlerTrait;
use Drupal\views\ViewExecutable;
use Drupal\views\Plugin\views\display\DisplayPluginBase;
use Drupal\views\Plugin\views\argument\StringArgument;
-use Drupal\Component\Utility\SafeMarkup;
/**
* Argument handler for list field to show the human readable name in summary.
diff --git a/core/modules/options/src/Tests/Views/OptionsTestBase.php b/core/modules/options/src/Tests/Views/OptionsTestBase.php
index b204d1b..972c00b 100644
--- a/core/modules/options/src/Tests/Views/OptionsTestBase.php
+++ b/core/modules/options/src/Tests/Views/OptionsTestBase.php
@@ -11,7 +11,6 @@ use Drupal\field\Entity\FieldConfig;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\node\Entity\Node;
use Drupal\node\Entity\NodeType;
-use Drupal\views\Tests\ViewTestBase;
use Drupal\views\Tests\ViewTestData;
use Drupal\views\Tests\ViewKernelTestBase;
diff --git a/core/modules/page_cache/src/StackMiddleware/PageCache.php b/core/modules/page_cache/src/StackMiddleware/PageCache.php
index 1629c14..23ddb84 100644
--- a/core/modules/page_cache/src/StackMiddleware/PageCache.php
+++ b/core/modules/page_cache/src/StackMiddleware/PageCache.php
@@ -7,12 +7,10 @@
namespace Drupal\page_cache\StackMiddleware;
-use Drupal\Component\Utility\UserAgent;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\PageCache\RequestPolicyInterface;
use Drupal\Core\PageCache\ResponsePolicyInterface;
-use Drupal\Core\Site\Settings;
use Symfony\Component\HttpFoundation\BinaryFileResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
diff --git a/core/modules/quickedit/src/MetadataGenerator.php b/core/modules/quickedit/src/MetadataGenerator.php
index 1de5fc6..289ad53 100644
--- a/core/modules/quickedit/src/MetadataGenerator.php
+++ b/core/modules/quickedit/src/MetadataGenerator.php
@@ -8,7 +8,6 @@
namespace Drupal\quickedit;
use Drupal\Component\Plugin\PluginManagerInterface;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\quickedit\Access\EditEntityFieldAccessCheckInterface;
diff --git a/core/modules/quickedit/src/Tests/MetadataGeneratorTest.php b/core/modules/quickedit/src/Tests/MetadataGeneratorTest.php
index 0cf21e0..0335703 100644
--- a/core/modules/quickedit/src/Tests/MetadataGeneratorTest.php
+++ b/core/modules/quickedit/src/Tests/MetadataGeneratorTest.php
@@ -9,7 +9,6 @@ namespace Drupal\quickedit\Tests;
use Drupal\quickedit\EditorSelector;
use Drupal\quickedit\MetadataGenerator;
-use Drupal\quickedit\Plugin\InPlaceEditorManager;
use Drupal\quickedit_test\MockEditEntityFieldAccessCheck;
/**
diff --git a/core/modules/quickedit/tests/modules/quickedit_test.module b/core/modules/quickedit/tests/modules/quickedit_test.module
index 4a1a2ef..39c4f04 100644
--- a/core/modules/quickedit/tests/modules/quickedit_test.module
+++ b/core/modules/quickedit/tests/modules/quickedit_test.module
@@ -6,8 +6,6 @@
*/
use Drupal\Core\Entity\EntityInterface;
-use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
-use Drupal\Core\Language\LanguageInterface;
/**
* Implements hook_quickedit_render_field().
diff --git a/core/modules/rdf/src/Tests/Field/DateTimeFieldRdfaTest.php b/core/modules/rdf/src/Tests/Field/DateTimeFieldRdfaTest.php
index 337644e..1b47b40 100644
--- a/core/modules/rdf/src/Tests/Field/DateTimeFieldRdfaTest.php
+++ b/core/modules/rdf/src/Tests/Field/DateTimeFieldRdfaTest.php
@@ -6,8 +6,6 @@
namespace Drupal\rdf\Tests\Field;
-use Drupal\rdf\Tests\Field\FieldRdfaTestBase;
-
/**
* Tests RDFa output by datetime field formatters.
*
diff --git a/core/modules/rdf/src/Tests/Field/EmailFieldRdfaTest.php b/core/modules/rdf/src/Tests/Field/EmailFieldRdfaTest.php
index a5067fc..cda7ee7 100644
--- a/core/modules/rdf/src/Tests/Field/EmailFieldRdfaTest.php
+++ b/core/modules/rdf/src/Tests/Field/EmailFieldRdfaTest.php
@@ -6,8 +6,6 @@
namespace Drupal\rdf\Tests\Field;
-use Drupal\rdf\Tests\Field\FieldRdfaTestBase;
-
/**
* Tests RDFa output by email field formatters.
*
diff --git a/core/modules/rdf/src/Tests/Field/LinkFieldRdfaTest.php b/core/modules/rdf/src/Tests/Field/LinkFieldRdfaTest.php
index 4d643d0..3a58b80 100644
--- a/core/modules/rdf/src/Tests/Field/LinkFieldRdfaTest.php
+++ b/core/modules/rdf/src/Tests/Field/LinkFieldRdfaTest.php
@@ -6,9 +6,6 @@
namespace Drupal\rdf\Tests\Field;
-use Drupal\Component\Utility\Unicode;
-use Drupal\rdf\Tests\Field\FieldRdfaTestBase;
-
/**
* Tests the placement of RDFa in link field formatters.
*
diff --git a/core/modules/rdf/src/Tests/Field/TextFieldRdfaTest.php b/core/modules/rdf/src/Tests/Field/TextFieldRdfaTest.php
index b54bd73..0e97b27 100644
--- a/core/modules/rdf/src/Tests/Field/TextFieldRdfaTest.php
+++ b/core/modules/rdf/src/Tests/Field/TextFieldRdfaTest.php
@@ -6,8 +6,6 @@
namespace Drupal\rdf\Tests\Field;
-use Drupal\rdf\Tests\Field\FieldRdfaTestBase;
-
/**
* Tests RDFa output by text field formatters.
*
diff --git a/core/modules/responsive_image/responsive_image.module b/core/modules/responsive_image/responsive_image.module
index 8060498..af87c5b 100644
--- a/core/modules/responsive_image/responsive_image.module
+++ b/core/modules/responsive_image/responsive_image.module
@@ -7,9 +7,7 @@
use Drupal\Component\Utility\Unicode;
use Drupal\Core\Routing\RouteMatchInterface;
-use \Drupal\Core\Template\Attribute;
use Drupal\image\Entity\ImageStyle;
-use Drupal\Core\Url;
use Drupal\responsive_image\Entity\ResponsiveImageStyle;
use Drupal\Core\Image\ImageInterface;
use Drupal\breakpoint\BreakpointInterface;
diff --git a/core/modules/rest/src/LinkManager/LinkManagerBase.php b/core/modules/rest/src/LinkManager/LinkManagerBase.php
index f93f6fd..82bce0b 100644
--- a/core/modules/rest/src/LinkManager/LinkManagerBase.php
+++ b/core/modules/rest/src/LinkManager/LinkManagerBase.php
@@ -6,7 +6,6 @@
*/
namespace Drupal\rest\LinkManager;
-use Drupal\Core\Url;
/**
* Defines an abstract base-class for REST link manager objects.
diff --git a/core/modules/rest/src/Plugin/ResourceBase.php b/core/modules/rest/src/Plugin/ResourceBase.php
index 5f8065e..5506f00 100644
--- a/core/modules/rest/src/Plugin/ResourceBase.php
+++ b/core/modules/rest/src/Plugin/ResourceBase.php
@@ -7,7 +7,6 @@
namespace Drupal\rest\Plugin;
-use Drupal\Core\Access\AccessManagerInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Plugin\PluginBase;
use Psr\Log\LoggerInterface;
diff --git a/core/modules/rest/src/Plugin/views/row/DataEntityRow.php b/core/modules/rest/src/Plugin/views/row/DataEntityRow.php
index 1d96d2b..a8bf139 100644
--- a/core/modules/rest/src/Plugin/views/row/DataEntityRow.php
+++ b/core/modules/rest/src/Plugin/views/row/DataEntityRow.php
@@ -7,7 +7,6 @@
namespace Drupal\rest\Plugin\views\row;
-use Drupal\views\ViewExecutable;
use Drupal\views\Plugin\views\row\RowPluginBase;
/**
diff --git a/core/modules/rest/src/Plugin/views/style/Serializer.php b/core/modules/rest/src/Plugin/views/style/Serializer.php
index 895f00c..7b8ded9 100644
--- a/core/modules/rest/src/Plugin/views/style/Serializer.php
+++ b/core/modules/rest/src/Plugin/views/style/Serializer.php
@@ -10,8 +10,6 @@ namespace Drupal\rest\Plugin\views\style;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Cache\CacheableDependencyInterface;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\views\ViewExecutable;
-use Drupal\views\Plugin\views\display\DisplayPluginBase;
use Drupal\views\Plugin\views\style\StylePluginBase;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\Serializer\SerializerInterface;
diff --git a/core/modules/rest/src/RequestHandler.php b/core/modules/rest/src/RequestHandler.php
index ee4b890..5a04cd8 100644
--- a/core/modules/rest/src/RequestHandler.php
+++ b/core/modules/rest/src/RequestHandler.php
@@ -14,7 +14,6 @@ use Symfony\Component\DependencyInjection\ContainerAwareTrait;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\HttpException;
-use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpKernel\Exception\UnsupportedMediaTypeHttpException;
use Symfony\Component\Serializer\Exception\UnexpectedValueException;
diff --git a/core/modules/rest/src/Routing/ResourceRoutes.php b/core/modules/rest/src/Routing/ResourceRoutes.php
index f975f27..b6f94e3 100644
--- a/core/modules/rest/src/Routing/ResourceRoutes.php
+++ b/core/modules/rest/src/Routing/ResourceRoutes.php
@@ -8,12 +8,9 @@
namespace Drupal\rest\Routing;
use Drupal\Core\Config\ConfigFactoryInterface;
-use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\Core\Routing\RouteSubscriberBase;
use Drupal\rest\Plugin\Type\ResourcePluginManager;
use Psr\Log\LoggerInterface;
-use Symfony\Component\DependencyInjection\ContainerInterface;
-use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Routing\RouteCollection;
/**
diff --git a/core/modules/rest/src/Tests/AuthTest.php b/core/modules/rest/src/Tests/AuthTest.php
index 8d4601a..ab0b3b1 100644
--- a/core/modules/rest/src/Tests/AuthTest.php
+++ b/core/modules/rest/src/Tests/AuthTest.php
@@ -8,7 +8,6 @@
namespace Drupal\rest\Tests;
use Drupal\Core\Url;
-use Drupal\rest\Tests\RESTTestBase;
/**
* Tests authentication provider restrictions.
diff --git a/core/modules/rest/src/Tests/RESTTestBase.php b/core/modules/rest/src/Tests/RESTTestBase.php
index b6eb46a..db7d123 100644
--- a/core/modules/rest/src/Tests/RESTTestBase.php
+++ b/core/modules/rest/src/Tests/RESTTestBase.php
@@ -7,7 +7,6 @@
namespace Drupal\rest\Tests;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\node\NodeInterface;
use Drupal\simpletest\WebTestBase;
diff --git a/core/modules/rest/src/Tests/ReadTest.php b/core/modules/rest/src/Tests/ReadTest.php
index c59d64f..eb3f222 100644
--- a/core/modules/rest/src/Tests/ReadTest.php
+++ b/core/modules/rest/src/Tests/ReadTest.php
@@ -9,7 +9,6 @@ namespace Drupal\rest\Tests;
use Drupal\Component\Serialization\Json;
use Drupal\Core\Url;
-use Drupal\rest\Tests\RESTTestBase;
/**
* Tests the retrieval of resources.
diff --git a/core/modules/rest/src/Tests/UpdateTest.php b/core/modules/rest/src/Tests/UpdateTest.php
index 2081012..a15d8f7 100644
--- a/core/modules/rest/src/Tests/UpdateTest.php
+++ b/core/modules/rest/src/Tests/UpdateTest.php
@@ -8,7 +8,6 @@
namespace Drupal\rest\Tests;
use Drupal\Component\Serialization\Json;
-use Drupal\rest\Tests\RESTTestBase;
/**
* Tests the update of resources.
diff --git a/core/modules/rest/src/Tests/Views/StyleSerializerTest.php b/core/modules/rest/src/Tests/Views/StyleSerializerTest.php
index 8fdbec4..5f378ee 100644
--- a/core/modules/rest/src/Tests/Views/StyleSerializerTest.php
+++ b/core/modules/rest/src/Tests/Views/StyleSerializerTest.php
@@ -7,7 +7,6 @@
namespace Drupal\rest\Tests\Views;
-use Drupal\Component\Utility\Html;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\entity_test\Entity\EntityTest;
diff --git a/core/modules/search/src/Controller/SearchController.php b/core/modules/search/src/Controller/SearchController.php
index f108bcd..0893259 100644
--- a/core/modules/search/src/Controller/SearchController.php
+++ b/core/modules/search/src/Controller/SearchController.php
@@ -7,9 +7,7 @@
namespace Drupal\search\Controller;
-use Drupal\Core\Cache\Cache;
use Drupal\Core\Cache\CacheableDependencyInterface;
-use Drupal\Core\Config\ConfigFactory;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Render\RendererInterface;
use Drupal\search\SearchPageInterface;
diff --git a/core/modules/search/src/Entity/SearchPage.php b/core/modules/search/src/Entity/SearchPage.php
index 8991cde..e2c21bb 100644
--- a/core/modules/search/src/Entity/SearchPage.php
+++ b/core/modules/search/src/Entity/SearchPage.php
@@ -10,7 +10,6 @@ namespace Drupal\search\Entity;
use Drupal\Core\Config\Entity\ConfigEntityBase;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
use Drupal\Core\Entity\EntityStorageInterface;
-use Drupal\Component\Plugin\ConfigurablePluginInterface;
use Drupal\Core\Entity\EntityWithPluginCollectionInterface;
use Drupal\search\Plugin\SearchIndexingInterface;
use Drupal\search\Plugin\SearchPluginCollection;
diff --git a/core/modules/search/src/Plugin/Block/SearchBlock.php b/core/modules/search/src/Plugin/Block/SearchBlock.php
index 9559291..799a9c5 100644
--- a/core/modules/search/src/Plugin/Block/SearchBlock.php
+++ b/core/modules/search/src/Plugin/Block/SearchBlock.php
@@ -10,7 +10,6 @@ namespace Drupal\search\Plugin\Block;
use Drupal\Core\Access\AccessResult;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Block\BlockBase;
-use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Provides a 'Search form' block.
diff --git a/core/modules/search/src/SearchQuery.php b/core/modules/search/src/SearchQuery.php
index 164aa3b..cf66820 100644
--- a/core/modules/search/src/SearchQuery.php
+++ b/core/modules/search/src/SearchQuery.php
@@ -12,7 +12,6 @@ namespace Drupal\search;
use Drupal\Component\Utility\Unicode;
use Drupal\Core\Database\Query\SelectExtender;
use Drupal\Core\Database\Query\SelectInterface;
-use Drupal\Core\Database\StatementEmpty;
/**
* Performs a query on the full-text search index for a word or words.
diff --git a/core/modules/serialization/src/Normalizer/ComplexDataNormalizer.php b/core/modules/serialization/src/Normalizer/ComplexDataNormalizer.php
index a2c9697..0077413 100644
--- a/core/modules/serialization/src/Normalizer/ComplexDataNormalizer.php
+++ b/core/modules/serialization/src/Normalizer/ComplexDataNormalizer.php
@@ -7,8 +7,6 @@
namespace Drupal\serialization\Normalizer;
-use Symfony\Component\Serializer\Exception\RuntimeException;
-
/**
* Converts the Drupal entity object structures to a normalized array.
*
diff --git a/core/modules/serialization/src/Normalizer/ListNormalizer.php b/core/modules/serialization/src/Normalizer/ListNormalizer.php
index 4fc2d00..fed9790 100644
--- a/core/modules/serialization/src/Normalizer/ListNormalizer.php
+++ b/core/modules/serialization/src/Normalizer/ListNormalizer.php
@@ -7,8 +7,6 @@
namespace Drupal\serialization\Normalizer;
-use Symfony\Component\Serializer\Exception\RuntimeException;
-
/**
* Converts list objects to arrays.
*
diff --git a/core/modules/serialization/src/Normalizer/TypedDataNormalizer.php b/core/modules/serialization/src/Normalizer/TypedDataNormalizer.php
index 69f9aeb..ca55246 100644
--- a/core/modules/serialization/src/Normalizer/TypedDataNormalizer.php
+++ b/core/modules/serialization/src/Normalizer/TypedDataNormalizer.php
@@ -7,8 +7,6 @@
namespace Drupal\serialization\Normalizer;
-use Symfony\Component\Serializer\Exception\RuntimeException;
-
/**
* Converts typed data objects to arrays.
*/
diff --git a/core/modules/serialization/src/Tests/EntitySerializationTest.php b/core/modules/serialization/src/Tests/EntitySerializationTest.php
index 3a9daf8..1dbc51c 100644
--- a/core/modules/serialization/src/Tests/EntitySerializationTest.php
+++ b/core/modules/serialization/src/Tests/EntitySerializationTest.php
@@ -7,9 +7,7 @@
namespace Drupal\serialization\Tests;
-use Drupal\Core\Language\LanguageInterface;
use Drupal\Component\Utility\SafeMarkup;
-use Drupal\user\Entity\User;
/**
* Tests that entities can be serialized to supported core formats.
diff --git a/core/modules/shortcut/src/Controller/ShortcutController.php b/core/modules/shortcut/src/Controller/ShortcutController.php
index 5e4bc68..f9480f8 100644
--- a/core/modules/shortcut/src/Controller/ShortcutController.php
+++ b/core/modules/shortcut/src/Controller/ShortcutController.php
@@ -10,7 +10,6 @@ namespace Drupal\shortcut\Controller;
use Drupal\Core\Controller\ControllerBase;
use Drupal\shortcut\ShortcutSetInterface;
use Drupal\shortcut\ShortcutInterface;
-use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Provides route responses for taxonomy.module.
diff --git a/core/modules/shortcut/src/Controller/ShortcutSetController.php b/core/modules/shortcut/src/Controller/ShortcutSetController.php
index 6a30d7c..56b4f55 100644
--- a/core/modules/shortcut/src/Controller/ShortcutSetController.php
+++ b/core/modules/shortcut/src/Controller/ShortcutSetController.php
@@ -11,7 +11,6 @@ use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Path\PathValidatorInterface;
use Drupal\shortcut\ShortcutSetInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
-use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
diff --git a/core/modules/shortcut/src/Form/SetCustomize.php b/core/modules/shortcut/src/Form/SetCustomize.php
index 31a574f..44c0b66 100644
--- a/core/modules/shortcut/src/Form/SetCustomize.php
+++ b/core/modules/shortcut/src/Form/SetCustomize.php
@@ -8,10 +8,8 @@
namespace Drupal\shortcut\Form;
use Drupal\Core\Entity\EntityForm;
-use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\Element;
-use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Builds the shortcut set customize form.
diff --git a/core/modules/shortcut/src/Form/SwitchShortcutSet.php b/core/modules/shortcut/src/Form/SwitchShortcutSet.php
index 9faa922..e27da6d 100644
--- a/core/modules/shortcut/src/Form/SwitchShortcutSet.php
+++ b/core/modules/shortcut/src/Form/SwitchShortcutSet.php
@@ -9,7 +9,6 @@ namespace Drupal\shortcut\Form;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\shortcut\Entity\ShortcutSet;
use Drupal\shortcut\ShortcutSetStorageInterface;
use Drupal\user\UserInterface;
diff --git a/core/modules/shortcut/src/Plugin/migrate/destination/EntityShortcutSet.php b/core/modules/shortcut/src/Plugin/migrate/destination/EntityShortcutSet.php
index a63cf6f..a33d8cd 100644
--- a/core/modules/shortcut/src/Plugin/migrate/destination/EntityShortcutSet.php
+++ b/core/modules/shortcut/src/Plugin/migrate/destination/EntityShortcutSet.php
@@ -8,7 +8,6 @@
namespace Drupal\shortcut\Plugin\migrate\destination;
use Drupal\migrate\Row;
-use Drupal\Core\Entity\EntityInterface;
use Drupal\migrate\Plugin\migrate\destination\EntityConfigBase;
/**
diff --git a/core/modules/simpletest/simpletest.module b/core/modules/simpletest/simpletest.module
index 57b7f08..69742cc 100644
--- a/core/modules/simpletest/simpletest.module
+++ b/core/modules/simpletest/simpletest.module
@@ -2,7 +2,6 @@
use Drupal\Core\Asset\AttachedAssetsInterface;
use Drupal\Core\Database\Database;
-use Drupal\Core\Extension\ExtensionDiscovery;
use Drupal\Core\Render\Element;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\simpletest\TestBase;
diff --git a/core/modules/simpletest/src/Form/SimpletestResultsForm.php b/core/modules/simpletest/src/Form/SimpletestResultsForm.php
index 58e9d2c..c5bf352 100644
--- a/core/modules/simpletest/src/Form/SimpletestResultsForm.php
+++ b/core/modules/simpletest/src/Form/SimpletestResultsForm.php
@@ -7,7 +7,6 @@
namespace Drupal\simpletest\Form;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Database\Connection;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormState;
diff --git a/core/modules/simpletest/src/Form/SimpletestTestForm.php b/core/modules/simpletest/src/Form/SimpletestTestForm.php
index f63e8be..c325a8a 100644
--- a/core/modules/simpletest/src/Form/SimpletestTestForm.php
+++ b/core/modules/simpletest/src/Form/SimpletestTestForm.php
@@ -7,7 +7,6 @@
namespace Drupal\simpletest\Form;
-use Drupal\Component\Utility\SortArray;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\RendererInterface;
diff --git a/core/modules/simpletest/src/TestBase.php b/core/modules/simpletest/src/TestBase.php
index 2270958..940fcba 100644
--- a/core/modules/simpletest/src/TestBase.php
+++ b/core/modules/simpletest/src/TestBase.php
@@ -9,7 +9,6 @@ namespace Drupal\simpletest;
use Drupal\Component\Render\MarkupInterface;
use Drupal\Component\Utility\Crypt;
-use Drupal\Component\Utility\Random;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Database\Database;
use Drupal\Core\Config\ConfigImporter;
diff --git a/core/modules/system/src/Controller/SystemController.php b/core/modules/system/src/Controller/SystemController.php
index 8f6b58a..84e6ac5 100644
--- a/core/modules/system/src/Controller/SystemController.php
+++ b/core/modules/system/src/Controller/SystemController.php
@@ -7,7 +7,6 @@
namespace Drupal\system\Controller;
-use Drupal\Component\Serialization\Json;
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Entity\Query\QueryFactory;
diff --git a/core/modules/system/src/Entity/Menu.php b/core/modules/system/src/Entity/Menu.php
index fa738f3..df2b08d 100644
--- a/core/modules/system/src/Entity/Menu.php
+++ b/core/modules/system/src/Entity/Menu.php
@@ -8,7 +8,6 @@
namespace Drupal\system\Entity;
use Drupal\Core\Config\Entity\ConfigEntityBase;
-use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\system\MenuInterface;
/**
diff --git a/core/modules/system/src/EventSubscriber/ConfigCacheTag.php b/core/modules/system/src/EventSubscriber/ConfigCacheTag.php
index 7705056..1df8423 100644
--- a/core/modules/system/src/EventSubscriber/ConfigCacheTag.php
+++ b/core/modules/system/src/EventSubscriber/ConfigCacheTag.php
@@ -7,7 +7,6 @@
namespace Drupal\system\EventSubscriber;
-use Drupal\Core\Cache\Cache;
use Drupal\Core\Cache\CacheTagsInvalidatorInterface;
use Drupal\Core\Config\ConfigCrudEvent;
use Drupal\Core\Config\ConfigEvents;
diff --git a/core/modules/system/src/Form/ModulesListForm.php b/core/modules/system/src/Form/ModulesListForm.php
index e86ba0a..e8a6cea 100644
--- a/core/modules/system/src/Form/ModulesListForm.php
+++ b/core/modules/system/src/Form/ModulesListForm.php
@@ -10,7 +10,6 @@ namespace Drupal\system\Form;
use Drupal\Component\Utility\Unicode;
use Drupal\Core\Config\PreExistingConfigException;
use Drupal\Core\Config\UnmetDependenciesException;
-use Drupal\Core\Controller\TitleResolverInterface;
use Drupal\Core\Access\AccessManagerInterface;
use Drupal\Core\Extension\Extension;
use Drupal\Core\Extension\ModuleHandlerInterface;
@@ -18,15 +17,11 @@ use Drupal\Core\Extension\ModuleInstallerInterface;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\KeyValueStore\KeyValueStoreExpirableInterface;
-use Drupal\Core\Menu\MenuLinkManagerInterface;
use Drupal\Core\Render\Element;
-use Drupal\Core\Routing\RouteMatchInterface;
-use Drupal\Core\Routing\RouteProviderInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\user\PermissionHandlerInterface;
use Drupal\Core\Url;
use Symfony\Component\DependencyInjection\ContainerInterface;
-use Symfony\Component\HttpFoundation\Request;
/**
* Provides module installation interface.
diff --git a/core/modules/system/src/Form/ModulesUninstallConfirmForm.php b/core/modules/system/src/Form/ModulesUninstallConfirmForm.php
index 0208e7c..69e3239 100644
--- a/core/modules/system/src/Form/ModulesUninstallConfirmForm.php
+++ b/core/modules/system/src/Form/ModulesUninstallConfirmForm.php
@@ -14,7 +14,6 @@ use Drupal\Core\Extension\ModuleInstallerInterface;
use Drupal\Core\Form\ConfirmFormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
-use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\KeyValueStore\KeyValueStoreExpirableInterface;
diff --git a/core/modules/system/src/Form/ThemeSettingsForm.php b/core/modules/system/src/Form/ThemeSettingsForm.php
index 978ca80..ccf5202 100644
--- a/core/modules/system/src/Form/ThemeSettingsForm.php
+++ b/core/modules/system/src/Form/ThemeSettingsForm.php
@@ -14,7 +14,6 @@ use Drupal\Core\StreamWrapper\PublicStream;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
-use Drupal\Core\Cache\Cache;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Form\ConfigFormBase;
diff --git a/core/modules/system/src/Plugin/Block/SystemBrandingBlock.php b/core/modules/system/src/Plugin/Block/SystemBrandingBlock.php
index c45b739..3adcd18 100644
--- a/core/modules/system/src/Plugin/Block/SystemBrandingBlock.php
+++ b/core/modules/system/src/Plugin/Block/SystemBrandingBlock.php
@@ -7,13 +7,11 @@
namespace Drupal\system\Plugin\Block;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Block\BlockBase;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
-use Drupal\Component\Utility\Xss;
use Drupal\Core\Url;
use Symfony\Component\DependencyInjection\ContainerInterface;
diff --git a/core/modules/system/src/Plugin/Block/SystemMainBlock.php b/core/modules/system/src/Plugin/Block/SystemMainBlock.php
index 92475ab..2bb2479 100644
--- a/core/modules/system/src/Plugin/Block/SystemMainBlock.php
+++ b/core/modules/system/src/Plugin/Block/SystemMainBlock.php
@@ -9,8 +9,6 @@ namespace Drupal\system\Plugin\Block;
use Drupal\Core\Block\BlockBase;
use Drupal\Core\Block\MainContentBlockPluginInterface;
-use Drupal\Core\Cache\Cache;
-use Drupal\Core\Form\FormStateInterface;
/**
* Provides a 'Main page content' block.
diff --git a/core/modules/system/src/Plugin/Block/SystemMessagesBlock.php b/core/modules/system/src/Plugin/Block/SystemMessagesBlock.php
index c1d78fb..17ab4e4 100644
--- a/core/modules/system/src/Plugin/Block/SystemMessagesBlock.php
+++ b/core/modules/system/src/Plugin/Block/SystemMessagesBlock.php
@@ -10,7 +10,6 @@ namespace Drupal\system\Plugin\Block;
use Drupal\Core\Block\BlockBase;
use Drupal\Core\Block\MessagesBlockPluginInterface;
use Drupal\Core\Cache\Cache;
-use Drupal\Core\Form\FormStateInterface;
/**
* Provides a block to display the messages.
diff --git a/core/modules/system/src/Plugin/Block/SystemPoweredByBlock.php b/core/modules/system/src/Plugin/Block/SystemPoweredByBlock.php
index db76b80..25ea051 100644
--- a/core/modules/system/src/Plugin/Block/SystemPoweredByBlock.php
+++ b/core/modules/system/src/Plugin/Block/SystemPoweredByBlock.php
@@ -8,8 +8,6 @@
namespace Drupal\system\Plugin\Block;
use Drupal\Core\Block\BlockBase;
-use Drupal\Core\Cache\Cache;
-use Drupal\Core\Form\FormStateInterface;
/**
* Provides a 'Powered by Drupal' block.
diff --git a/core/modules/system/src/Plugin/Condition/RequestPath.php b/core/modules/system/src/Plugin/Condition/RequestPath.php
index 4cd92de..074d42f 100644
--- a/core/modules/system/src/Plugin/Condition/RequestPath.php
+++ b/core/modules/system/src/Plugin/Condition/RequestPath.php
@@ -14,7 +14,6 @@ use Drupal\Core\Path\AliasManagerInterface;
use Drupal\Core\Path\CurrentPathStack;
use Drupal\Core\Path\PathMatcherInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
-use Drupal\Core\StringTranslation\StringTranslationTrait;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\RequestStack;
diff --git a/core/modules/system/src/SystemManager.php b/core/modules/system/src/SystemManager.php
index 1ea232b..f61fd41 100644
--- a/core/modules/system/src/SystemManager.php
+++ b/core/modules/system/src/SystemManager.php
@@ -11,8 +11,6 @@ use Drupal\Core\Menu\MenuActiveTrailInterface;
use Drupal\Core\Menu\MenuLinkTreeInterface;
use Drupal\Core\Menu\MenuLinkInterface;
use Drupal\Core\Menu\MenuTreeParameters;
-use Symfony\Cmf\Component\Routing\RouteObjectInterface;
-use Drupal\Core\Database\Connection;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Symfony\Component\HttpFoundation\RequestStack;
diff --git a/core/modules/system/src/Tests/Common/AttachedAssetsTest.php b/core/modules/system/src/Tests/Common/AttachedAssetsTest.php
index 7bbcafb..7440d99 100644
--- a/core/modules/system/src/Tests/Common/AttachedAssetsTest.php
+++ b/core/modules/system/src/Tests/Common/AttachedAssetsTest.php
@@ -9,7 +9,6 @@ namespace Drupal\system\Tests\Common;
use Drupal\Component\Serialization\Json;
use Drupal\Component\Utility\Unicode;
-use Drupal\Component\Utility\Crypt;
use Drupal\Core\Asset\AttachedAssets;
use Drupal\simpletest\KernelTestBase;
diff --git a/core/modules/system/src/Tests/Common/PageRenderTest.php b/core/modules/system/src/Tests/Common/PageRenderTest.php
index ec16e36..1b4c387 100644
--- a/core/modules/system/src/Tests/Common/PageRenderTest.php
+++ b/core/modules/system/src/Tests/Common/PageRenderTest.php
@@ -7,7 +7,6 @@
namespace Drupal\system\Tests\Common;
-use Drupal\Core\Render\MainContent\HtmlRenderer;
use Drupal\simpletest\KernelTestBase;
/**
diff --git a/core/modules/system/src/Tests/Common/RenderTest.php b/core/modules/system/src/Tests/Common/RenderTest.php
index df0278b..98de2b5 100644
--- a/core/modules/system/src/Tests/Common/RenderTest.php
+++ b/core/modules/system/src/Tests/Common/RenderTest.php
@@ -7,10 +7,7 @@
namespace Drupal\system\Tests\Common;
-use Drupal\Component\Serialization\Json;
-use Drupal\Component\Utility\Html;
use Drupal\Core\Render\Element;
-use Drupal\Core\Url;
use Drupal\simpletest\KernelTestBase;
/**
diff --git a/core/modules/system/src/Tests/Database/ConnectionUnitTest.php b/core/modules/system/src/Tests/Database/ConnectionUnitTest.php
index 0593ce8..4327ac5 100644
--- a/core/modules/system/src/Tests/Database/ConnectionUnitTest.php
+++ b/core/modules/system/src/Tests/Database/ConnectionUnitTest.php
@@ -7,9 +7,7 @@
namespace Drupal\system\Tests\Database;
-use Doctrine\Common\Reflection\StaticReflectionProperty;
use Drupal\Core\Database\Database;
-use Drupal\Core\Site\Settings;
use Drupal\simpletest\KernelTestBase;
/**
diff --git a/core/modules/system/src/Tests/DrupalKernel/ServiceDestructionTest.php b/core/modules/system/src/Tests/DrupalKernel/ServiceDestructionTest.php
index 68e28a2..339f7fe 100644
--- a/core/modules/system/src/Tests/DrupalKernel/ServiceDestructionTest.php
+++ b/core/modules/system/src/Tests/DrupalKernel/ServiceDestructionTest.php
@@ -9,7 +9,6 @@ namespace Drupal\system\Tests\DrupalKernel;
use Drupal\simpletest\KernelTestBase;
use Symfony\Component\HttpFoundation\Response;
-use Symfony\Component\HttpKernel\Event\PostResponseEvent;
/**
* Tests that services are correctly destructed.
diff --git a/core/modules/system/src/Tests/Entity/EntityTypeConstraintValidatorTest.php b/core/modules/system/src/Tests/Entity/EntityTypeConstraintValidatorTest.php
index 3d6ecc6..b9ebee2 100644
--- a/core/modules/system/src/Tests/Entity/EntityTypeConstraintValidatorTest.php
+++ b/core/modules/system/src/Tests/Entity/EntityTypeConstraintValidatorTest.php
@@ -7,7 +7,6 @@
namespace Drupal\system\Tests\Entity;
-use Drupal\system\Tests\Entity\EntityUnitTestBase;
use Drupal\system\Tests\TypedData;
use Drupal\Core\TypedData\DataDefinition;
diff --git a/core/modules/system/src/Tests/Form/ElementsTableSelectTest.php b/core/modules/system/src/Tests/Form/ElementsTableSelectTest.php
index 22622e7..f9ce925 100644
--- a/core/modules/system/src/Tests/Form/ElementsTableSelectTest.php
+++ b/core/modules/system/src/Tests/Form/ElementsTableSelectTest.php
@@ -9,7 +9,6 @@ namespace Drupal\system\Tests\Form;
use Drupal\Core\Form\FormState;
use Drupal\simpletest\WebTestBase;
-use Drupal\Core\Form\FormStateInterface;
/**
* Tests the tableselect form element for expected behavior.
diff --git a/core/modules/system/src/Tests/Path/UrlAlterFunctionalTest.php b/core/modules/system/src/Tests/Path/UrlAlterFunctionalTest.php
index d9a8228..71915ac 100644
--- a/core/modules/system/src/Tests/Path/UrlAlterFunctionalTest.php
+++ b/core/modules/system/src/Tests/Path/UrlAlterFunctionalTest.php
@@ -7,7 +7,6 @@
namespace Drupal\system\Tests\Path;
-use Drupal\Core\Url;
use Drupal\simpletest\WebTestBase;
/**
diff --git a/core/modules/system/src/Tests/Routing/RouterPermissionTest.php b/core/modules/system/src/Tests/Routing/RouterPermissionTest.php
index 048982c..b3d5706 100644
--- a/core/modules/system/src/Tests/Routing/RouterPermissionTest.php
+++ b/core/modules/system/src/Tests/Routing/RouterPermissionTest.php
@@ -7,9 +7,7 @@
namespace Drupal\system\Tests\Routing;
-use Drupal\Core\Routing\RequestHelper;
use Drupal\simpletest\WebTestBase;
-use Symfony\Component\Routing\Exception\ResourceNotFoundException;
/**
* Function Tests for the routing permission system.
diff --git a/core/modules/system/src/Tests/Routing/RouterTest.php b/core/modules/system/src/Tests/Routing/RouterTest.php
index 076d0ce..17345fa 100644
--- a/core/modules/system/src/Tests/Routing/RouterTest.php
+++ b/core/modules/system/src/Tests/Routing/RouterTest.php
@@ -11,7 +11,6 @@ use Drupal\Core\Cache\Cache;
use Drupal\Core\EventSubscriber\MainContentViewSubscriber;
use Drupal\Core\Language\LanguageInterface;
use Drupal\simpletest\WebTestBase;
-use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Exception\RouteNotFoundException;
use Drupal\Core\Url;
diff --git a/core/modules/system/src/Tests/System/TrustedHostsTest.php b/core/modules/system/src/Tests/System/TrustedHostsTest.php
index e54decc..a3b08b8 100644
--- a/core/modules/system/src/Tests/System/TrustedHostsTest.php
+++ b/core/modules/system/src/Tests/System/TrustedHostsTest.php
@@ -7,11 +7,7 @@
namespace Drupal\system\Tests\System;
-use Drupal\Core\Site\Settings;
-use Drupal\Core\Url;
use Drupal\simpletest\WebTestBase;
-use Drupal\user\Entity\User;
-use Symfony\Component\HttpFoundation\Request;
/**
* Tests output on the status overview page.
diff --git a/core/modules/system/src/Tests/Theme/TwigFilterTest.php b/core/modules/system/src/Tests/Theme/TwigFilterTest.php
index 2adc8c9..aab1676 100644
--- a/core/modules/system/src/Tests/Theme/TwigFilterTest.php
+++ b/core/modules/system/src/Tests/Theme/TwigFilterTest.php
@@ -8,7 +8,6 @@
namespace Drupal\system\Tests\Theme;
use Drupal\simpletest\WebTestBase;
-use Drupal\Core\Template\Attribute;
/**
* Tests Drupal's Twig filters.
diff --git a/core/modules/system/src/Tests/Theme/TwigTransTest.php b/core/modules/system/src/Tests/Theme/TwigTransTest.php
index ac970cd..6bfe442 100644
--- a/core/modules/system/src/Tests/Theme/TwigTransTest.php
+++ b/core/modules/system/src/Tests/Theme/TwigTransTest.php
@@ -7,10 +7,7 @@
namespace Drupal\system\Tests\Theme;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Language\LanguageInterface;
-use Drupal\Core\Url;
-use Drupal\language\Entity\ConfigurableLanguage;
use Drupal\simpletest\WebTestBase;
/**
diff --git a/core/modules/system/src/Tests/Update/FilterHtmlUpdateTest.php b/core/modules/system/src/Tests/Update/FilterHtmlUpdateTest.php
index c958592..c71143d 100644
--- a/core/modules/system/src/Tests/Update/FilterHtmlUpdateTest.php
+++ b/core/modules/system/src/Tests/Update/FilterHtmlUpdateTest.php
@@ -8,7 +8,6 @@
namespace Drupal\system\Tests\Update;
use Drupal\filter\Entity\FilterFormat;
-use Drupal\system\Tests\Update\UpdatePathTestBase;
/**
* Tests that the allowed html configutations are updated with attributes.
diff --git a/core/modules/system/src/Tests/Update/SevenSecondaryLocalTasksConvertedIntoBlockUpdateTest.php b/core/modules/system/src/Tests/Update/SevenSecondaryLocalTasksConvertedIntoBlockUpdateTest.php
index 1a15213..79086b3 100644
--- a/core/modules/system/src/Tests/Update/SevenSecondaryLocalTasksConvertedIntoBlockUpdateTest.php
+++ b/core/modules/system/src/Tests/Update/SevenSecondaryLocalTasksConvertedIntoBlockUpdateTest.php
@@ -7,8 +7,6 @@
namespace Drupal\system\Tests\Update;
-use Drupal\node\Entity\Node;
-
/**
* Tests the upgrade path for converting seven secondary local tasks into a block.
*
diff --git a/core/modules/system/src/Tests/Update/SiteBrandingConvertedIntoBlockUpdateTest.php b/core/modules/system/src/Tests/Update/SiteBrandingConvertedIntoBlockUpdateTest.php
index 86a34d7..a5e24ce 100644
--- a/core/modules/system/src/Tests/Update/SiteBrandingConvertedIntoBlockUpdateTest.php
+++ b/core/modules/system/src/Tests/Update/SiteBrandingConvertedIntoBlockUpdateTest.php
@@ -7,8 +7,6 @@
namespace Drupal\system\Tests\Update;
-use Drupal\node\Entity\Node;
-
/**
* Tests the upgrade path for local actions/tasks being converted into blocks.
*
diff --git a/core/modules/system/system.admin.inc b/core/modules/system/system.admin.inc
index 5b391e7..704b2dc 100644
--- a/core/modules/system/system.admin.inc
+++ b/core/modules/system/system.admin.inc
@@ -5,11 +5,7 @@
* Admin page callbacks for the system module.
*/
-use Drupal\Component\Utility\SafeMarkup;
-use Drupal\Component\Utility\Xss;
use Drupal\Component\Utility\Html;
-use Drupal\Core\Cache\Cache;
-use Drupal\Core\Extension\Extension;
use Drupal\Core\Render\Element;
use Drupal\Core\Template\Attribute;
diff --git a/core/modules/system/system.install b/core/modules/system/system.install
index d5686dc..8addfd1 100644
--- a/core/modules/system/system.install
+++ b/core/modules/system/system.install
@@ -7,11 +7,9 @@
use Drupal\Component\Utility\Crypt;
use Drupal\Component\Utility\Environment;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Url;
use Drupal\Core\Database\Database;
use Drupal\Core\DrupalKernel;
-use Drupal\Core\Language\Language;
use Drupal\Core\Site\Settings;
use Drupal\Core\StreamWrapper\PrivateStream;
use Drupal\Core\StreamWrapper\PublicStream;
diff --git a/core/modules/system/tests/modules/cache_test/src/Controller/CacheTestController.php b/core/modules/system/tests/modules/cache_test/src/Controller/CacheTestController.php
index f47c057..5c294bd 100644
--- a/core/modules/system/tests/modules/cache_test/src/Controller/CacheTestController.php
+++ b/core/modules/system/tests/modules/cache_test/src/Controller/CacheTestController.php
@@ -7,8 +7,6 @@
namespace Drupal\cache_test\Controller;
-use Drupal\Component\Utility\SafeMarkup;
-use Drupal\Core\Render\HtmlResponse;
use Drupal\Core\Url;
/**
diff --git a/core/modules/system/tests/modules/database_test/database_test.module b/core/modules/system/tests/modules/database_test/database_test.module
index d065453..b5ee9c8 100644
--- a/core/modules/system/tests/modules/database_test/database_test.module
+++ b/core/modules/system/tests/modules/database_test/database_test.module
@@ -1,7 +1,6 @@
<?php
use Drupal\Core\Database\Query\AlterableInterface;
-use Symfony\Component\HttpFoundation\JsonResponse;
/**
* Implements hook_query_alter().
diff --git a/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMul.php b/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMul.php
index 334ff94..e821272 100644
--- a/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMul.php
+++ b/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMul.php
@@ -7,10 +7,6 @@
namespace Drupal\entity_test\Entity;
-use Drupal\Core\Entity\EntityTypeInterface;
-use Drupal\Core\Field\BaseFieldDefinition;
-use Drupal\entity_test\Entity\EntityTest;
-
/**
* Defines the test entity class.
*
diff --git a/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulRev.php b/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulRev.php
index 83dd0ed..a29dbbf 100644
--- a/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulRev.php
+++ b/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulRev.php
@@ -7,10 +7,6 @@
namespace Drupal\entity_test\Entity;
-use Drupal\Core\Entity\EntityTypeInterface;
-use Drupal\Core\Field\BaseFieldDefinition;
-use Drupal\entity_test\Entity\EntityTestRev;
-
/**
* Defines the test entity class.
*
diff --git a/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestRev.php b/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestRev.php
index 7914032..7a4fefd 100644
--- a/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestRev.php
+++ b/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestRev.php
@@ -9,7 +9,6 @@ namespace Drupal\entity_test\Entity;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Field\BaseFieldDefinition;
-use Drupal\entity_test\Entity\EntityTest;
/**
* Defines the test entity class.
diff --git a/core/modules/system/tests/modules/entity_test/src/EntityTestForm.php b/core/modules/system/tests/modules/entity_test/src/EntityTestForm.php
index 59e798b..164557b 100644
--- a/core/modules/system/tests/modules/entity_test/src/EntityTestForm.php
+++ b/core/modules/system/tests/modules/entity_test/src/EntityTestForm.php
@@ -9,7 +9,6 @@ namespace Drupal\entity_test;
use Drupal\Component\Utility\Random;
use Drupal\Core\Entity\ContentEntityForm;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Language\LanguageInterface;
/**
* Form controller for the test entity edit forms.
diff --git a/core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraintValidator.php b/core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraintValidator.php
index d643b74..511122d 100644
--- a/core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraintValidator.php
+++ b/core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraintValidator.php
@@ -7,7 +7,6 @@
namespace Drupal\entity_test\Plugin\Validation\Constraint;
-use Drupal\Core\Entity\EntityTypeInterface;
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintValidator;
diff --git a/core/modules/system/tests/modules/menu_test/src/TestControllers.php b/core/modules/system/tests/modules/menu_test/src/TestControllers.php
index 364c77b..a7e39e4 100644
--- a/core/modules/system/tests/modules/menu_test/src/TestControllers.php
+++ b/core/modules/system/tests/modules/menu_test/src/TestControllers.php
@@ -8,7 +8,6 @@
namespace Drupal\menu_test;
use Drupal\Component\Utility\SafeMarkup;
-use Drupal\Core\Entity\EntityInterface;
/**
* Controllers for testing the menu integration routing system.
diff --git a/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockComplexContextBlock.php b/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockComplexContextBlock.php
index 8041c3a..1cb657a 100644
--- a/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockComplexContextBlock.php
+++ b/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockComplexContextBlock.php
@@ -7,7 +7,6 @@
namespace Drupal\plugin_test\Plugin\plugin_test\mock_block;
-use Drupal\Core\Plugin\Context\ContextDefinition;
use Drupal\Core\Plugin\ContextAwarePluginBase;
/**
diff --git a/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockMenuBlock.php b/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockMenuBlock.php
index 375b784..7ca628f 100644
--- a/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockMenuBlock.php
+++ b/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockMenuBlock.php
@@ -7,8 +7,6 @@
namespace Drupal\plugin_test\Plugin\plugin_test\mock_block;
-use Drupal\Component\Plugin\PluginBase;
-
/**
* Mock implementation of a menu block plugin used by Plugin API unit tests.
*
diff --git a/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockUserNameBlock.php b/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockUserNameBlock.php
index 07c7a79..9150167 100644
--- a/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockUserNameBlock.php
+++ b/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockUserNameBlock.php
@@ -7,7 +7,6 @@
namespace Drupal\plugin_test\Plugin\plugin_test\mock_block;
-use Drupal\Core\Plugin\Context\ContextDefinition;
use Drupal\Core\Plugin\ContextAwarePluginBase;
/**
diff --git a/core/modules/system/tests/modules/session_test/src/Controller/SessionTestController.php b/core/modules/system/tests/modules/session_test/src/Controller/SessionTestController.php
index 4e4954f..3af2ea5 100644
--- a/core/modules/system/tests/modules/session_test/src/Controller/SessionTestController.php
+++ b/core/modules/system/tests/modules/session_test/src/Controller/SessionTestController.php
@@ -8,7 +8,6 @@
namespace Drupal\session_test\Controller;
use Drupal\Core\Controller\ControllerBase;
-use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
diff --git a/core/modules/system/tests/modules/test_page_test/src/Controller/Test.php b/core/modules/system/tests/modules/test_page_test/src/Controller/Test.php
index 934e6a2..5e2835e 100644
--- a/core/modules/system/tests/modules/test_page_test/src/Controller/Test.php
+++ b/core/modules/system/tests/modules/test_page_test/src/Controller/Test.php
@@ -7,8 +7,6 @@
namespace Drupal\test_page_test\Controller;
-use Drupal\Component\Utility\Html;
-
/**
* Defines a test controller for page titles.
*/
diff --git a/core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php b/core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php
index e9eb7a7..5265b8e 100644
--- a/core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php
+++ b/core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php
@@ -7,7 +7,6 @@
namespace Drupal\Tests\system\Kernel\Extension;
-use Drupal\Component\FileCache\FileCacheFactory;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use \Drupal\Core\Extension\ModuleUninstallValidatorException;
use Drupal\KernelTests\KernelTestBase;
diff --git a/core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php b/core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php
index 64e61c7..29f0cea 100644
--- a/core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php
+++ b/core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php
@@ -11,7 +11,6 @@ use Drupal\Core\Access\AccessResult;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Link;
use Drupal\Core\Access\AccessResultAllowed;
-use Drupal\Core\Session\AccountInterface;
use Drupal\Core\StringTranslation\TranslationInterface;
use Drupal\Core\Url;
use Drupal\Core\Utility\LinkGeneratorInterface;
@@ -21,7 +20,6 @@ use Symfony\Cmf\Component\Routing\RouteObjectInterface;
use Symfony\Component\DependencyInjection\Container;
use Symfony\Component\HttpFoundation\ParameterBag;
use Symfony\Component\HttpFoundation\Request;
-use Symfony\Component\Routing\RequestContext;
use Symfony\Component\Routing\Route;
/**
diff --git a/core/modules/taxonomy/src/Plugin/migrate/builder/d6/TermNode.php b/core/modules/taxonomy/src/Plugin/migrate/builder/d6/TermNode.php
index 39ba5eb..36458ac 100644
--- a/core/modules/taxonomy/src/Plugin/migrate/builder/d6/TermNode.php
+++ b/core/modules/taxonomy/src/Plugin/migrate/builder/d6/TermNode.php
@@ -13,7 +13,6 @@ use Drupal\migrate\MigrateExecutable;
use Drupal\migrate\MigrateMessage;
use Drupal\migrate\MigrateTemplateStorage;
use Drupal\migrate\Plugin\migrate\builder\BuilderBase;
-use Drupal\migrate\Row;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
diff --git a/core/modules/taxonomy/src/Plugin/views/argument/IndexTid.php b/core/modules/taxonomy/src/Plugin/views/argument/IndexTid.php
index 89a31f7..6018b06 100644
--- a/core/modules/taxonomy/src/Plugin/views/argument/IndexTid.php
+++ b/core/modules/taxonomy/src/Plugin/views/argument/IndexTid.php
@@ -9,7 +9,6 @@ namespace Drupal\taxonomy\Plugin\views\argument;
use Drupal\taxonomy\Entity\Term;
use Drupal\views\Plugin\views\argument\ManyToOne;
-use Drupal\Component\Utility\SafeMarkup;
/**
* Allow taxonomy term ID(s) as argument.
diff --git a/core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php b/core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php
index e2df37f..c63e444 100644
--- a/core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php
+++ b/core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php
@@ -11,7 +11,6 @@ use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\views\Plugin\views\argument\ArgumentPluginBase;
-use Drupal\taxonomy\Entity\Term;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
diff --git a/core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php b/core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php
index 07dca4c..f52e264 100644
--- a/core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php
+++ b/core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php
@@ -17,8 +17,6 @@ use Drupal\views\Plugin\views\display\DisplayPluginBase;
use Drupal\views\Plugin\views\argument_default\ArgumentDefaultPluginBase;
use Drupal\node\NodeInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
-use Symfony\Component\HttpFoundation\Request;
-use Drupal\taxonomy\Entity\Vocabulary;
use Drupal\taxonomy\VocabularyStorageInterface;
/**
diff --git a/core/modules/taxonomy/src/Plugin/views/argument_validator/TermName.php b/core/modules/taxonomy/src/Plugin/views/argument_validator/TermName.php
index 0a8c081..d5a7a7e 100644
--- a/core/modules/taxonomy/src/Plugin/views/argument_validator/TermName.php
+++ b/core/modules/taxonomy/src/Plugin/views/argument_validator/TermName.php
@@ -8,8 +8,6 @@
namespace Drupal\taxonomy\Plugin\views\argument_validator;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\views\ViewExecutable;
-use Drupal\views\Plugin\views\display\DisplayPluginBase;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\views\Plugin\views\argument_validator\Entity;
diff --git a/core/modules/taxonomy/src/Plugin/views/field/TaxonomyIndexTid.php b/core/modules/taxonomy/src/Plugin/views/field/TaxonomyIndexTid.php
index 3049f6f..845f352 100644
--- a/core/modules/taxonomy/src/Plugin/views/field/TaxonomyIndexTid.php
+++ b/core/modules/taxonomy/src/Plugin/views/field/TaxonomyIndexTid.php
@@ -11,7 +11,6 @@ use Drupal\Core\Form\FormStateInterface;
use Drupal\views\ViewExecutable;
use Drupal\views\Plugin\views\display\DisplayPluginBase;
use Drupal\views\Plugin\views\field\PrerenderList;
-use Drupal\taxonomy\Entity\Vocabulary;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\taxonomy\VocabularyStorageInterface;
diff --git a/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php b/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php
index 01086b0..9bb575c 100644
--- a/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php
+++ b/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php
@@ -8,7 +8,6 @@
namespace Drupal\taxonomy\Plugin\views\filter;
use Drupal\Core\Entity\Element\EntityAutocomplete;
-use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\taxonomy\Entity\Term;
use Drupal\taxonomy\TermStorageInterface;
@@ -16,7 +15,6 @@ use Drupal\taxonomy\VocabularyStorageInterface;
use Drupal\views\ViewExecutable;
use Drupal\views\Plugin\views\display\DisplayPluginBase;
use Drupal\views\Plugin\views\filter\ManyToOne;
-use Drupal\Component\Utility\Tags;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
diff --git a/core/modules/taxonomy/src/TermStorage.php b/core/modules/taxonomy/src/TermStorage.php
index 8cc5be8..1876b72 100644
--- a/core/modules/taxonomy/src/TermStorage.php
+++ b/core/modules/taxonomy/src/TermStorage.php
@@ -9,7 +9,6 @@ namespace Drupal\taxonomy;
use Drupal\Core\Entity\Sql\SqlContentEntityStorage;
use Drupal\Core\Entity\EntityInterface;
-use Drupal\Core\Entity\Query\QueryInterface;
/**
* Defines a Controller class for taxonomy terms.
diff --git a/core/modules/taxonomy/src/Tests/EfqTest.php b/core/modules/taxonomy/src/Tests/EfqTest.php
index f2fd1be..bb94033 100644
--- a/core/modules/taxonomy/src/Tests/EfqTest.php
+++ b/core/modules/taxonomy/src/Tests/EfqTest.php
@@ -7,8 +7,6 @@
namespace Drupal\taxonomy\Tests;
-use Drupal\Core\Entity\Query\QueryFactory;
-
/**
* Verifies operation of a taxonomy-based Entity Query.
*
diff --git a/core/modules/taxonomy/src/Tests/Migrate/d6/MigrateVocabularyFieldInstanceTest.php b/core/modules/taxonomy/src/Tests/Migrate/d6/MigrateVocabularyFieldInstanceTest.php
index a1f0c5b..903957f 100644
--- a/core/modules/taxonomy/src/Tests/Migrate/d6/MigrateVocabularyFieldInstanceTest.php
+++ b/core/modules/taxonomy/src/Tests/Migrate/d6/MigrateVocabularyFieldInstanceTest.php
@@ -7,7 +7,6 @@
namespace Drupal\taxonomy\Tests\Migrate\d6;
-use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\field\Entity\FieldConfig;
use Drupal\migrate\Entity\Migration;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
diff --git a/core/modules/taxonomy/src/Tests/TermKernelTest.php b/core/modules/taxonomy/src/Tests/TermKernelTest.php
index 9074375..549dcea 100644
--- a/core/modules/taxonomy/src/Tests/TermKernelTest.php
+++ b/core/modules/taxonomy/src/Tests/TermKernelTest.php
@@ -8,7 +8,6 @@
namespace Drupal\taxonomy\Tests;
use Drupal\taxonomy\Entity\Term;
-use Drupal\taxonomy\Tests\TaxonomyTestTrait;
use Drupal\simpletest\KernelTestBase;
/**
diff --git a/core/modules/taxonomy/src/Tests/Views/TaxonomyIndexTidUiTest.php b/core/modules/taxonomy/src/Tests/Views/TaxonomyIndexTidUiTest.php
index 95b64a2..c2a0bcd 100644
--- a/core/modules/taxonomy/src/Tests/Views/TaxonomyIndexTidUiTest.php
+++ b/core/modules/taxonomy/src/Tests/Views/TaxonomyIndexTidUiTest.php
@@ -7,7 +7,6 @@
namespace Drupal\taxonomy\Tests\Views;
-use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\field\Tests\EntityReference\EntityReferenceTestTrait;
use Drupal\taxonomy\Entity\Term;
use Drupal\taxonomy\Entity\Vocabulary;
diff --git a/core/modules/taxonomy/src/Tests/Views/TaxonomyRelationshipTest.php b/core/modules/taxonomy/src/Tests/Views/TaxonomyRelationshipTest.php
index ae065cf..5889deb 100644
--- a/core/modules/taxonomy/src/Tests/Views/TaxonomyRelationshipTest.php
+++ b/core/modules/taxonomy/src/Tests/Views/TaxonomyRelationshipTest.php
@@ -9,7 +9,6 @@ namespace Drupal\taxonomy\Tests\Views;
use Drupal\node\NodeInterface;
use Drupal\taxonomy\TermInterface;
-use Drupal\views\Tests\ViewTestData;
use Drupal\views\Views;
/**
diff --git a/core/modules/taxonomy/src/Tests/Views/TaxonomyViewsFieldAccessTest.php b/core/modules/taxonomy/src/Tests/Views/TaxonomyViewsFieldAccessTest.php
index c16b10a..132e8ed 100644
--- a/core/modules/taxonomy/src/Tests/Views/TaxonomyViewsFieldAccessTest.php
+++ b/core/modules/taxonomy/src/Tests/Views/TaxonomyViewsFieldAccessTest.php
@@ -9,7 +9,6 @@ namespace Drupal\taxonomy\Tests\Views;
use Drupal\taxonomy\Entity\Term;
use Drupal\taxonomy\Entity\Vocabulary;
-use Drupal\user\Entity\User;
use Drupal\views\Tests\Handler\FieldFieldAccessTestBase;
/**
diff --git a/core/modules/taxonomy/src/Tests/VocabularyCrudTest.php b/core/modules/taxonomy/src/Tests/VocabularyCrudTest.php
index a46a47e..6596b8e 100644
--- a/core/modules/taxonomy/src/Tests/VocabularyCrudTest.php
+++ b/core/modules/taxonomy/src/Tests/VocabularyCrudTest.php
@@ -8,7 +8,6 @@
namespace Drupal\taxonomy\Tests;
use Drupal\Component\Utility\Unicode;
-use Drupal\field\Entity\FieldConfig;
use Drupal\taxonomy\Entity\Vocabulary;
/**
diff --git a/core/modules/taxonomy/src/VocabularyStorage.php b/core/modules/taxonomy/src/VocabularyStorage.php
index 85fd4a6..b761bcc 100644
--- a/core/modules/taxonomy/src/VocabularyStorage.php
+++ b/core/modules/taxonomy/src/VocabularyStorage.php
@@ -7,7 +7,6 @@
namespace Drupal\taxonomy;
-use Drupal\Core\Cache\Cache;
use Drupal\Core\Config\Entity\ConfigEntityStorage;
/**
diff --git a/core/modules/text/src/Plugin/Field/FieldWidget/TextareaWithSummaryWidget.php b/core/modules/text/src/Plugin/Field/FieldWidget/TextareaWithSummaryWidget.php
index d3c9cd3..8bfb713 100644
--- a/core/modules/text/src/Plugin/Field/FieldWidget/TextareaWithSummaryWidget.php
+++ b/core/modules/text/src/Plugin/Field/FieldWidget/TextareaWithSummaryWidget.php
@@ -8,7 +8,6 @@
namespace Drupal\text\Plugin\Field\FieldWidget;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\text\Plugin\Field\FieldWidget\TextareaWidget;
use Symfony\Component\Validator\ConstraintViolationInterface;
use Drupal\Core\Field\FieldItemListInterface;
diff --git a/core/modules/text/src/TextProcessed.php b/core/modules/text/src/TextProcessed.php
index 197b28c..57b36f4 100644
--- a/core/modules/text/src/TextProcessed.php
+++ b/core/modules/text/src/TextProcessed.php
@@ -7,7 +7,6 @@
namespace Drupal\text;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\TypedData\DataDefinitionInterface;
use Drupal\Core\TypedData\TypedDataInterface;
use Drupal\Core\TypedData\TypedData;
diff --git a/core/modules/text/text.module b/core/modules/text/text.module
index f30acf7..1d2fdcc 100644
--- a/core/modules/text/text.module
+++ b/core/modules/text/text.module
@@ -7,7 +7,6 @@
use Drupal\Component\Utility\Html;
use Drupal\Component\Utility\Unicode;
-use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Routing\RouteMatchInterface;
/**
diff --git a/core/modules/toolbar/src/Tests/ToolbarAdminMenuTest.php b/core/modules/toolbar/src/Tests/ToolbarAdminMenuTest.php
index 4ce22e6..9667019 100644
--- a/core/modules/toolbar/src/Tests/ToolbarAdminMenuTest.php
+++ b/core/modules/toolbar/src/Tests/ToolbarAdminMenuTest.php
@@ -7,7 +7,6 @@
namespace Drupal\toolbar\Tests;
-use Drupal\Core\Cache\Cache;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Url;
use Drupal\language\Entity\ConfigurableLanguage;
diff --git a/core/modules/toolbar/toolbar.module b/core/modules/toolbar/toolbar.module
index 02b3f85..a8eeef4 100644
--- a/core/modules/toolbar/toolbar.module
+++ b/core/modules/toolbar/toolbar.module
@@ -5,13 +5,11 @@
* Administration toolbar for quick access to top level administration items.
*/
-use Drupal\Core\Cache\Cache;
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Menu\MenuTreeParameters;
use Drupal\Core\Render\Element;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Template\Attribute;
-use Drupal\Component\Datetime\DateTimePlus;
use Drupal\Component\Utility\Crypt;
use Drupal\Core\Url;
diff --git a/core/modules/tour/src/Entity/Tour.php b/core/modules/tour/src/Entity/Tour.php
index 8a4576c..5d42e0b 100644
--- a/core/modules/tour/src/Entity/Tour.php
+++ b/core/modules/tour/src/Entity/Tour.php
@@ -8,7 +8,6 @@
namespace Drupal\tour\Entity;
use Drupal\Core\Config\Entity\ConfigEntityBase;
-use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\tour\TipsPluginCollection;
use Drupal\tour\TourInterface;
diff --git a/core/modules/tour/src/TipPluginBase.php b/core/modules/tour/src/TipPluginBase.php
index 2c226f5..5c4a981 100644
--- a/core/modules/tour/src/TipPluginBase.php
+++ b/core/modules/tour/src/TipPluginBase.php
@@ -8,7 +8,6 @@
namespace Drupal\tour;
use Drupal\Core\Plugin\PluginBase;
-use Drupal\tour\TipPluginInterface;
/**
* Defines a base tour item implementation.
diff --git a/core/modules/tour/src/TourViewBuilder.php b/core/modules/tour/src/TourViewBuilder.php
index caccf15..e5a6d9d 100644
--- a/core/modules/tour/src/TourViewBuilder.php
+++ b/core/modules/tour/src/TourViewBuilder.php
@@ -8,7 +8,6 @@
namespace Drupal\tour;
use Drupal\Core\Entity\EntityViewBuilder;
-use Drupal\Core\Entity\EntityInterface;
use Drupal\Component\Utility\Html;
/**
diff --git a/core/modules/tour/tour.module b/core/modules/tour/tour.module
index 3b153e2..ed53f25 100644
--- a/core/modules/tour/tour.module
+++ b/core/modules/tour/tour.module
@@ -5,7 +5,6 @@
* Main functions of the module.
*/
-use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Routing\RouteMatchInterface;
/**
diff --git a/core/modules/update/tests/modules/update_test/update_test.module b/core/modules/update/tests/modules/update_test/update_test.module
index fe01b21..f8de3cd 100644
--- a/core/modules/update/tests/modules/update_test/update_test.module
+++ b/core/modules/update/tests/modules/update_test/update_test.module
@@ -1,8 +1,6 @@
<?php
use Drupal\Core\Extension\Extension;
-use Symfony\Component\HttpFoundation\Response;
-use Symfony\Component\HttpFoundation\BinaryFileResponse;
/**
* @file
diff --git a/core/modules/update/update.module b/core/modules/update/update.module
index df674de..98f7569 100644
--- a/core/modules/update/update.module
+++ b/core/modules/update/update.module
@@ -15,7 +15,6 @@ use Drupal\Core\Url;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Site\Settings;
-use Symfony\Cmf\Component\Routing\RouteObjectInterface;
// These are internally used constants for this code, do not modify.
diff --git a/core/modules/user/src/AccountForm.php b/core/modules/user/src/AccountForm.php
index 289a1a9..af7bae0 100644
--- a/core/modules/user/src/AccountForm.php
+++ b/core/modules/user/src/AccountForm.php
@@ -7,7 +7,6 @@
namespace Drupal\user;
-use Drupal\Component\Utility\Unicode;
use Drupal\Core\Entity\ContentEntityForm;
use Drupal\Core\Entity\EntityConstraintViolationListInterface;
use Drupal\Core\Entity\EntityManagerInterface;
@@ -15,7 +14,6 @@ use Drupal\Core\Entity\Query\QueryFactory;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Language\LanguageManagerInterface;
-use Drupal\Core\Url;
use Drupal\language\ConfigurableLanguageManagerInterface;
use Drupal\user\Plugin\LanguageNegotiation\LanguageNegotiationUser;
use Drupal\user\Plugin\LanguageNegotiation\LanguageNegotiationUserAdmin;
diff --git a/core/modules/user/src/Entity/Role.php b/core/modules/user/src/Entity/Role.php
index 8421215..45cad65 100644
--- a/core/modules/user/src/Entity/Role.php
+++ b/core/modules/user/src/Entity/Role.php
@@ -7,7 +7,6 @@
namespace Drupal\user\Entity;
-use Drupal\Core\Cache\Cache;
use Drupal\Core\Config\Entity\ConfigEntityBase;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\user\RoleInterface;
diff --git a/core/modules/user/src/Form/UserLoginForm.php b/core/modules/user/src/Form/UserLoginForm.php
index 83c3468..b336091 100644
--- a/core/modules/user/src/Form/UserLoginForm.php
+++ b/core/modules/user/src/Form/UserLoginForm.php
@@ -7,7 +7,6 @@
namespace Drupal\user\Form;
-use Drupal\Core\Cache\Cache;
use Drupal\Core\Flood\FloodInterface;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
diff --git a/core/modules/user/src/Form/UserPasswordForm.php b/core/modules/user/src/Form/UserPasswordForm.php
index f874428..04075eb 100644
--- a/core/modules/user/src/Form/UserPasswordForm.php
+++ b/core/modules/user/src/Form/UserPasswordForm.php
@@ -7,13 +7,11 @@
namespace Drupal\user\Form;
-use Drupal\Core\Field\Plugin\Field\FieldType\EmailItem;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Language\LanguageManagerInterface;
use Drupal\Core\Render\Element\Email;
use Drupal\user\UserStorageInterface;
-use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
diff --git a/core/modules/user/src/Plugin/Action/AddRoleUser.php b/core/modules/user/src/Plugin/Action/AddRoleUser.php
index 0ff48c6..526f603 100644
--- a/core/modules/user/src/Plugin/Action/AddRoleUser.php
+++ b/core/modules/user/src/Plugin/Action/AddRoleUser.php
@@ -7,10 +7,6 @@
namespace Drupal\user\Plugin\Action;
-use Drupal\Core\Access\AccessResult;
-use Drupal\Core\Session\AccountInterface;
-use Drupal\user\Plugin\Action\ChangeUserRoleBase;
-
/**
* Adds a role to a user.
*
diff --git a/core/modules/user/src/Plugin/Action/RemoveRoleUser.php b/core/modules/user/src/Plugin/Action/RemoveRoleUser.php
index a0f7bdb..470d489 100644
--- a/core/modules/user/src/Plugin/Action/RemoveRoleUser.php
+++ b/core/modules/user/src/Plugin/Action/RemoveRoleUser.php
@@ -7,10 +7,6 @@
namespace Drupal\user\Plugin\Action;
-use Drupal\Core\Access\AccessResult;
-use Drupal\Core\Session\AccountInterface;
-use Drupal\user\Plugin\Action\ChangeUserRoleBase;
-
/**
* Removes a role from a user.
*
diff --git a/core/modules/user/src/Plugin/Condition/UserRole.php b/core/modules/user/src/Plugin/Condition/UserRole.php
index f6ddb87..b0965a1 100644
--- a/core/modules/user/src/Plugin/Condition/UserRole.php
+++ b/core/modules/user/src/Plugin/Condition/UserRole.php
@@ -9,7 +9,6 @@ namespace Drupal\user\Plugin\Condition;
use Drupal\Core\Condition\ConditionPluginBase;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Plugin\Context\ContextDefinition;
/**
* Provides a 'User Role' condition.
diff --git a/core/modules/user/src/Plugin/LanguageNegotiation/LanguageNegotiationUserAdmin.php b/core/modules/user/src/Plugin/LanguageNegotiation/LanguageNegotiationUserAdmin.php
index 3917c47..9e6936d 100644
--- a/core/modules/user/src/Plugin/LanguageNegotiation/LanguageNegotiationUserAdmin.php
+++ b/core/modules/user/src/Plugin/LanguageNegotiation/LanguageNegotiationUserAdmin.php
@@ -10,7 +10,6 @@ namespace Drupal\user\Plugin\LanguageNegotiation;
use Drupal\Core\PathProcessor\PathProcessorManager;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Routing\AdminContext;
-use Drupal\Core\Routing\RouteMatch;
use Drupal\Core\Routing\StackedRouteMatchInterface;
use Drupal\language\LanguageNegotiationMethodBase;
use Symfony\Cmf\Component\Routing\RouteObjectInterface;
diff --git a/core/modules/user/src/Plugin/Validation/Constraint/UserMailRequired.php b/core/modules/user/src/Plugin/Validation/Constraint/UserMailRequired.php
index ae4973c..1204c7b 100644
--- a/core/modules/user/src/Plugin/Validation/Constraint/UserMailRequired.php
+++ b/core/modules/user/src/Plugin/Validation/Constraint/UserMailRequired.php
@@ -7,7 +7,6 @@
namespace Drupal\user\Plugin\Validation\Constraint;
-use Drupal\Component\Utility\Html;
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintValidatorInterface;
use Symfony\Component\Validator\ExecutionContextInterface;
diff --git a/core/modules/user/src/Plugin/views/access/Role.php b/core/modules/user/src/Plugin/views/access/Role.php
index b7bbf50..ad779d6 100644
--- a/core/modules/user/src/Plugin/views/access/Role.php
+++ b/core/modules/user/src/Plugin/views/access/Role.php
@@ -7,7 +7,6 @@
namespace Drupal\user\Plugin\views\access;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Cache\CacheableDependencyInterface;
use Drupal\Core\Form\FormStateInterface;
diff --git a/core/modules/user/src/Plugin/views/argument_default/User.php b/core/modules/user/src/Plugin/views/argument_default/User.php
index faeb4b7..7d1e39c 100644
--- a/core/modules/user/src/Plugin/views/argument_default/User.php
+++ b/core/modules/user/src/Plugin/views/argument_default/User.php
@@ -13,7 +13,6 @@ use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\views\Plugin\views\argument_default\ArgumentDefaultPluginBase;
use Symfony\Component\DependencyInjection\ContainerInterface;
-use Symfony\Component\HttpFoundation\Request;
use Drupal\user\UserInterface;
use Drupal\node\NodeInterface;
diff --git a/core/modules/user/src/Plugin/views/field/UserBulkForm.php b/core/modules/user/src/Plugin/views/field/UserBulkForm.php
index b5f008b..4167a3b 100644
--- a/core/modules/user/src/Plugin/views/field/UserBulkForm.php
+++ b/core/modules/user/src/Plugin/views/field/UserBulkForm.php
@@ -7,7 +7,6 @@
namespace Drupal\user\Plugin\views\field;
-use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\system\Plugin\views\field\BulkForm;
use Drupal\user\UserInterface;
diff --git a/core/modules/user/src/Plugin/views/field/UserData.php b/core/modules/user/src/Plugin/views/field/UserData.php
index 7c00186..948cbae 100644
--- a/core/modules/user/src/Plugin/views/field/UserData.php
+++ b/core/modules/user/src/Plugin/views/field/UserData.php
@@ -9,10 +9,8 @@ namespace Drupal\user\Plugin\views\field;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\views\Plugin\views\display\DisplayPluginBase;
use Drupal\views\Plugin\views\field\FieldPluginBase;
use Drupal\views\ResultRow;
-use Drupal\views\ViewExecutable;
use Drupal\user\UserDataInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
diff --git a/core/modules/user/src/Plugin/views/filter/Name.php b/core/modules/user/src/Plugin/views/filter/Name.php
index 5794b62..a4be2f5 100644
--- a/core/modules/user/src/Plugin/views/filter/Name.php
+++ b/core/modules/user/src/Plugin/views/filter/Name.php
@@ -7,7 +7,6 @@
namespace Drupal\user\Plugin\views\filter;
-use Drupal\Component\Utility\Tags;
use Drupal\Core\Entity\Element\EntityAutocomplete;
use Drupal\Core\Form\FormStateInterface;
use Drupal\user\Entity\User;
diff --git a/core/modules/user/src/RoleForm.php b/core/modules/user/src/RoleForm.php
index bb801ea..ada54dd 100644
--- a/core/modules/user/src/RoleForm.php
+++ b/core/modules/user/src/RoleForm.php
@@ -7,7 +7,6 @@
namespace Drupal\user;
-use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityForm;
use Drupal\Core\Form\FormStateInterface;
diff --git a/core/modules/user/src/SharedTempStoreFactory.php b/core/modules/user/src/SharedTempStoreFactory.php
index c5f11e8..1a537e3 100644
--- a/core/modules/user/src/SharedTempStoreFactory.php
+++ b/core/modules/user/src/SharedTempStoreFactory.php
@@ -7,7 +7,6 @@
namespace Drupal\user;
-use Drupal\Component\Serialization\SerializationInterface;
use Drupal\Core\KeyValueStore\KeyValueExpirableFactoryInterface;
use Drupal\Core\Lock\LockBackendInterface;
use Symfony\Component\HttpFoundation\RequestStack;
diff --git a/core/modules/user/src/Tests/TempStoreDatabaseTest.php b/core/modules/user/src/Tests/TempStoreDatabaseTest.php
index 6e89700..6e4d837 100644
--- a/core/modules/user/src/Tests/TempStoreDatabaseTest.php
+++ b/core/modules/user/src/Tests/TempStoreDatabaseTest.php
@@ -7,7 +7,6 @@
namespace Drupal\user\Tests;
-use Drupal\Component\Serialization\PhpSerialize;
use Drupal\Core\KeyValueStore\KeyValueExpirableFactory;
use Drupal\simpletest\KernelTestBase;
use Drupal\user\SharedTempStoreFactory;
diff --git a/core/modules/user/src/Tests/UserAccountLinksTest.php b/core/modules/user/src/Tests/UserAccountLinksTest.php
index cb3ea88..5686fbe 100644
--- a/core/modules/user/src/Tests/UserAccountLinksTest.php
+++ b/core/modules/user/src/Tests/UserAccountLinksTest.php
@@ -7,7 +7,6 @@
namespace Drupal\user\Tests;
-use Drupal\Core\Menu\MenuTreeParameters;
use Drupal\simpletest\WebTestBase;
/**
diff --git a/core/modules/user/src/Tests/UserEntityTest.php b/core/modules/user/src/Tests/UserEntityTest.php
index a4601ef..a9954f6 100644
--- a/core/modules/user/src/Tests/UserEntityTest.php
+++ b/core/modules/user/src/Tests/UserEntityTest.php
@@ -7,7 +7,6 @@
namespace Drupal\user\Tests;
-use Drupal\Core\Language\LanguageInterface;
use Drupal\simpletest\KernelTestBase;
use Drupal\user\Entity\User;
use Drupal\user\RoleInterface;
diff --git a/core/modules/user/src/Tests/UserLoginTest.php b/core/modules/user/src/Tests/UserLoginTest.php
index 6106927..39ffed5 100644
--- a/core/modules/user/src/Tests/UserLoginTest.php
+++ b/core/modules/user/src/Tests/UserLoginTest.php
@@ -8,7 +8,6 @@
namespace Drupal\user\Tests;
use Drupal\simpletest\WebTestBase;
-use Drupal\Core\Password\PhpassHashedPassword;
use Drupal\user\Entity\User;
/**
diff --git a/core/modules/user/src/Tests/UserPermissionsTest.php b/core/modules/user/src/Tests/UserPermissionsTest.php
index e5baa49..42bbad1 100644
--- a/core/modules/user/src/Tests/UserPermissionsTest.php
+++ b/core/modules/user/src/Tests/UserPermissionsTest.php
@@ -10,7 +10,6 @@ namespace Drupal\user\Tests;
use Drupal\simpletest\WebTestBase;
use Drupal\user\RoleInterface;
use Drupal\user\Entity\Role;
-use Drupal\user\RoleStorage;
/**
* Verify that role permissions can be added and removed via the permissions
diff --git a/core/modules/user/src/Tests/UserValidationTest.php b/core/modules/user/src/Tests/UserValidationTest.php
index f39e11e..4891d5a 100644
--- a/core/modules/user/src/Tests/UserValidationTest.php
+++ b/core/modules/user/src/Tests/UserValidationTest.php
@@ -7,9 +7,7 @@
namespace Drupal\user\Tests;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Entity\EntityInterface;
-use Drupal\Core\Field\Plugin\Field\FieldType\EmailItem;
use Drupal\Core\Language\Language;
use Drupal\Core\Render\Element\Email;
use Drupal\simpletest\KernelTestBase;
diff --git a/core/modules/user/src/Tests/Views/AccessRoleTest.php b/core/modules/user/src/Tests/Views/AccessRoleTest.php
index 043971a..a6230b3 100644
--- a/core/modules/user/src/Tests/Views/AccessRoleTest.php
+++ b/core/modules/user/src/Tests/Views/AccessRoleTest.php
@@ -11,7 +11,6 @@ use Drupal\Core\Cache\Cache;
use Drupal\user\Plugin\views\access\Role;
use Drupal\views\Plugin\views\display\DisplayPluginBase;
use Drupal\views\Views;
-use Symfony\Component\HttpFoundation\Request;
/**
* Tests views role access plugin.
diff --git a/core/modules/user/src/Tests/Views/HandlerFieldRoleTest.php b/core/modules/user/src/Tests/Views/HandlerFieldRoleTest.php
index 9434925..5f15e71 100644
--- a/core/modules/user/src/Tests/Views/HandlerFieldRoleTest.php
+++ b/core/modules/user/src/Tests/Views/HandlerFieldRoleTest.php
@@ -8,7 +8,6 @@
namespace Drupal\user\Tests\Views;
use Drupal\Component\Utility\Html;
-use Drupal\views\Views;
use Drupal\user\Entity\User;
/**
diff --git a/core/modules/user/src/Tests/Views/HandlerFilterRolesTest.php b/core/modules/user/src/Tests/Views/HandlerFilterRolesTest.php
index 3268eec..b105583 100644
--- a/core/modules/user/src/Tests/Views/HandlerFilterRolesTest.php
+++ b/core/modules/user/src/Tests/Views/HandlerFilterRolesTest.php
@@ -9,7 +9,6 @@ namespace Drupal\user\Tests\Views;
use Drupal\user\Entity\Role;
use Drupal\views\Entity\View;
-use Drupal\views\Views;
/**
* Tests the roles filter handler.
diff --git a/core/modules/user/src/UserDataInterface.php b/core/modules/user/src/UserDataInterface.php
index e32c4fb..d730528 100644
--- a/core/modules/user/src/UserDataInterface.php
+++ b/core/modules/user/src/UserDataInterface.php
@@ -7,8 +7,6 @@
namespace Drupal\user;
-use Drupal\Core\Database\Connection;
-
/**
* Defines the user data service interface.
*/
diff --git a/core/modules/user/tests/src/Unit/Plugin/Core/Entity/UserTest.php b/core/modules/user/tests/src/Unit/Plugin/Core/Entity/UserTest.php
index 4f004a0..56c9a6d 100644
--- a/core/modules/user/tests/src/Unit/Plugin/Core/Entity/UserTest.php
+++ b/core/modules/user/tests/src/Unit/Plugin/Core/Entity/UserTest.php
@@ -8,8 +8,7 @@
namespace Drupal\Tests\user\Unit\Plugin\Core\Entity;
use Drupal\Tests\Core\Session\UserSessionTest;
-use Drupal\user\Entity\User;
- use Drupal\user\RoleInterface;
+use Drupal\user\RoleInterface;
/**
* @coversDefaultClass \Drupal\user\Entity\User
diff --git a/core/modules/user/user.api.php b/core/modules/user/user.api.php
index 26e7f5a..aec17b5 100644
--- a/core/modules/user/user.api.php
+++ b/core/modules/user/user.api.php
@@ -1,7 +1,5 @@
<?php
-use Drupal\Core\Entity\EntityInterface;
-
/**
* @file
* Hooks provided by the User module.
diff --git a/core/modules/user/user.module b/core/modules/user/user.module
index 7782954..bec3b51 100644
--- a/core/modules/user/user.module
+++ b/core/modules/user/user.module
@@ -7,7 +7,6 @@ use Drupal\Core\Asset\AttachedAssetsInterface;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
use Drupal\Core\Field\BaseFieldDefinition;
-use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\Element;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Session\AccountInterface;
diff --git a/core/modules/views/src/Analyzer.php b/core/modules/views/src/Analyzer.php
index 7a2999e..bd0b6ac 100644
--- a/core/modules/views/src/Analyzer.php
+++ b/core/modules/views/src/Analyzer.php
@@ -8,7 +8,6 @@
namespace Drupal\views;
use Drupal\Core\Extension\ModuleHandlerInterface;
-use Drupal\views\ViewExecutable;
/**
* This tool is a small plugin manager to perform analysis on a view and
diff --git a/core/modules/views/src/Annotation/ViewsAccess.php b/core/modules/views/src/Annotation/ViewsAccess.php
index dcc33b3..7458f27 100644
--- a/core/modules/views/src/Annotation/ViewsAccess.php
+++ b/core/modules/views/src/Annotation/ViewsAccess.php
@@ -7,7 +7,6 @@
namespace Drupal\views\Annotation;
-use Drupal\views\Annotation\ViewsPluginAnnotationBase;
/**
* Defines a Plugin annotation object for views access plugins.
diff --git a/core/modules/views/src/Annotation/ViewsArgumentDefault.php b/core/modules/views/src/Annotation/ViewsArgumentDefault.php
index 1e6215f..54da518 100644
--- a/core/modules/views/src/Annotation/ViewsArgumentDefault.php
+++ b/core/modules/views/src/Annotation/ViewsArgumentDefault.php
@@ -7,8 +7,6 @@
namespace Drupal\views\Annotation;
-use Drupal\views\Annotation\ViewsPluginAnnotationBase;
-
/**
* Defines a Plugin annotation object for views argument default plugins.
*
diff --git a/core/modules/views/src/Annotation/ViewsArgumentValidator.php b/core/modules/views/src/Annotation/ViewsArgumentValidator.php
index a5f1ee3..f9fd20c 100644
--- a/core/modules/views/src/Annotation/ViewsArgumentValidator.php
+++ b/core/modules/views/src/Annotation/ViewsArgumentValidator.php
@@ -7,8 +7,6 @@
namespace Drupal\views\Annotation;
-use Drupal\views\Annotation\ViewsPluginAnnotationBase;
-
/**
* Defines a Plugin annotation object for views argument validator plugins.
*
diff --git a/core/modules/views/src/Annotation/ViewsCache.php b/core/modules/views/src/Annotation/ViewsCache.php
index 6a89799..4b5bfdf 100644
--- a/core/modules/views/src/Annotation/ViewsCache.php
+++ b/core/modules/views/src/Annotation/ViewsCache.php
@@ -7,8 +7,6 @@
namespace Drupal\views\Annotation;
-use Drupal\views\Annotation\ViewsPluginAnnotationBase;
-
/**
* Defines a Plugin annotation object for views cache plugins.
*
diff --git a/core/modules/views/src/Annotation/ViewsDisplay.php b/core/modules/views/src/Annotation/ViewsDisplay.php
index 42f4361..4cda702 100644
--- a/core/modules/views/src/Annotation/ViewsDisplay.php
+++ b/core/modules/views/src/Annotation/ViewsDisplay.php
@@ -7,8 +7,6 @@
namespace Drupal\views\Annotation;
-use Drupal\views\Annotation\ViewsPluginAnnotationBase;
-
/**
* Defines a Plugin annotation object for views display plugins.
*
diff --git a/core/modules/views/src/Annotation/ViewsExposedForm.php b/core/modules/views/src/Annotation/ViewsExposedForm.php
index f0b06b5..0fa318e 100644
--- a/core/modules/views/src/Annotation/ViewsExposedForm.php
+++ b/core/modules/views/src/Annotation/ViewsExposedForm.php
@@ -7,8 +7,6 @@
namespace Drupal\views\Annotation;
-use Drupal\views\Annotation\ViewsPluginAnnotationBase;
-
/**
* Defines a Plugin annotation object for views exposed form plugins.
*
diff --git a/core/modules/views/src/Annotation/ViewsPager.php b/core/modules/views/src/Annotation/ViewsPager.php
index cfde425..3541f28 100644
--- a/core/modules/views/src/Annotation/ViewsPager.php
+++ b/core/modules/views/src/Annotation/ViewsPager.php
@@ -7,8 +7,6 @@
namespace Drupal\views\Annotation;
-use Drupal\views\Annotation\ViewsPluginAnnotationBase;
-
/**
* Defines a Plugin annotation object for views pager plugins.
*
diff --git a/core/modules/views/src/Annotation/ViewsQuery.php b/core/modules/views/src/Annotation/ViewsQuery.php
index b759ccf..2dc0f4c 100644
--- a/core/modules/views/src/Annotation/ViewsQuery.php
+++ b/core/modules/views/src/Annotation/ViewsQuery.php
@@ -7,8 +7,6 @@
namespace Drupal\views\Annotation;
-use Drupal\views\Annotation\ViewsPluginAnnotationBase;
-
/**
* Defines a Plugin annotation object for views query plugins.
*
diff --git a/core/modules/views/src/Annotation/ViewsRow.php b/core/modules/views/src/Annotation/ViewsRow.php
index 57c86a7..1d4c894 100644
--- a/core/modules/views/src/Annotation/ViewsRow.php
+++ b/core/modules/views/src/Annotation/ViewsRow.php
@@ -7,8 +7,6 @@
namespace Drupal\views\Annotation;
-use Drupal\views\Annotation\ViewsPluginAnnotationBase;
-
/**
* Defines a Plugin annotation object for views row plugins.
*
diff --git a/core/modules/views/src/Annotation/ViewsStyle.php b/core/modules/views/src/Annotation/ViewsStyle.php
index 07d2a16..5c6a0b0 100644
--- a/core/modules/views/src/Annotation/ViewsStyle.php
+++ b/core/modules/views/src/Annotation/ViewsStyle.php
@@ -7,8 +7,6 @@
namespace Drupal\views\Annotation;
-use Drupal\views\Annotation\ViewsPluginAnnotationBase;
-
/**
* Defines a Plugin annotation object for views style plugins.
*
diff --git a/core/modules/views/src/Annotation/ViewsWizard.php b/core/modules/views/src/Annotation/ViewsWizard.php
index f31e18d..f76440b 100644
--- a/core/modules/views/src/Annotation/ViewsWizard.php
+++ b/core/modules/views/src/Annotation/ViewsWizard.php
@@ -7,8 +7,6 @@
namespace Drupal\views\Annotation;
-use Drupal\views\Annotation\ViewsPluginAnnotationBase;
-
/**
* Defines a Plugin annotation object for views wizard plugins.
*
diff --git a/core/modules/views/src/Controller/ViewAjaxController.php b/core/modules/views/src/Controller/ViewAjaxController.php
index 01e69ef..bd2f3c1 100644
--- a/core/modules/views/src/Controller/ViewAjaxController.php
+++ b/core/modules/views/src/Controller/ViewAjaxController.php
@@ -8,7 +8,6 @@
namespace Drupal\views\Controller;
use Drupal\Component\Utility\UrlHelper;
-use Drupal\Core\Ajax\AjaxResponse;
use Drupal\Core\Ajax\ReplaceCommand;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\Core\Entity\EntityStorageInterface;
diff --git a/core/modules/views/src/Entity/Render/EntityFieldRenderer.php b/core/modules/views/src/Entity/Render/EntityFieldRenderer.php
index 9e94a63..f2a3778 100644
--- a/core/modules/views/src/Entity/Render/EntityFieldRenderer.php
+++ b/core/modules/views/src/Entity/Render/EntityFieldRenderer.php
@@ -8,7 +8,6 @@
namespace Drupal\views\Entity\Render;
use Drupal\Core\Entity\Entity\EntityViewDisplay;
-use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Language\LanguageManagerInterface;
diff --git a/core/modules/views/src/EventSubscriber/RouteSubscriber.php b/core/modules/views/src/EventSubscriber/RouteSubscriber.php
index db07140..aed4bc1 100644
--- a/core/modules/views/src/EventSubscriber/RouteSubscriber.php
+++ b/core/modules/views/src/EventSubscriber/RouteSubscriber.php
@@ -15,8 +15,6 @@ use Drupal\views\Plugin\views\display\DisplayRouterInterface;
use Drupal\views\ViewExecutable;
use Drupal\views\Views;
use Symfony\Component\Routing\RouteCollection;
-use Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent;
-use Symfony\Component\HttpKernel\KernelEvents;
/**
* Builds up the routes of all views.
diff --git a/core/modules/views/src/Form/ViewsExposedForm.php b/core/modules/views/src/Form/ViewsExposedForm.php
index aee99d6..e2b91a5 100644
--- a/core/modules/views/src/Form/ViewsExposedForm.php
+++ b/core/modules/views/src/Form/ViewsExposedForm.php
@@ -8,7 +8,6 @@
namespace Drupal\views\Form;
use Drupal\Component\Utility\Html;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
diff --git a/core/modules/views/src/Plugin/Block/ViewsBlock.php b/core/modules/views/src/Plugin/Block/ViewsBlock.php
index 4c8a8b4..20dbace 100644
--- a/core/modules/views/src/Plugin/Block/ViewsBlock.php
+++ b/core/modules/views/src/Plugin/Block/ViewsBlock.php
@@ -8,10 +8,8 @@
namespace Drupal\views\Plugin\Block;
use Drupal\Component\Utility\Xss;
-use Drupal\Core\Config\Entity\Query\Query;
use Drupal\Core\Form\FormStateInterface;
use Drupal\views\Element\View;
-use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Provides a generic Views block.
diff --git a/core/modules/views/src/Plugin/Derivative/ViewsLocalTask.php b/core/modules/views/src/Plugin/Derivative/ViewsLocalTask.php
index 343dc76..b0527ee 100644
--- a/core/modules/views/src/Plugin/Derivative/ViewsLocalTask.php
+++ b/core/modules/views/src/Plugin/Derivative/ViewsLocalTask.php
@@ -12,7 +12,6 @@ use Drupal\Core\State\StateInterface;
use Drupal\Component\Plugin\Derivative\DeriverBase;
use Drupal\Core\Plugin\Discovery\ContainerDeriverInterface;
use Drupal\Core\Routing\RouteProviderInterface;
-use Drupal\views\ViewEntityInterface;
use Drupal\views\Views;
use Symfony\Component\DependencyInjection\ContainerInterface;
diff --git a/core/modules/views/src/Plugin/views/HandlerBase.php b/core/modules/views/src/Plugin/views/HandlerBase.php
index 47e0c13..b5bb16d 100644
--- a/core/modules/views/src/Plugin/views/HandlerBase.php
+++ b/core/modules/views/src/Plugin/views/HandlerBase.php
@@ -18,7 +18,6 @@ use Drupal\Core\Session\AccountInterface;
use Drupal\views\Plugin\views\display\DisplayPluginBase;
use Drupal\views\Render\ViewsRenderPipelineMarkup;
use Drupal\views\ViewExecutable;
-use Drupal\Core\Database\Database;
use Drupal\views\Views;
use Drupal\views\ViewsData;
diff --git a/core/modules/views/src/Plugin/views/area/Entity.php b/core/modules/views/src/Plugin/views/area/Entity.php
index ed17232..eb2f0f3 100644
--- a/core/modules/views/src/Plugin/views/area/Entity.php
+++ b/core/modules/views/src/Plugin/views/area/Entity.php
@@ -7,7 +7,6 @@
namespace Drupal\views\Plugin\views\area;
-use Drupal\Component\Uuid\Uuid;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\views\Plugin\views\display\DisplayPluginBase;
diff --git a/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php b/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
index adb9126..2a9fe84 100644
--- a/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
+++ b/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
@@ -14,7 +14,6 @@ use Drupal\Core\Cache\Cache;
use Drupal\Core\Cache\CacheableDependencyInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\Element;
-use Drupal\views\Plugin\views\PluginBase;
use Drupal\views\Plugin\views\display\DisplayPluginBase;
use Drupal\views\ViewExecutable;
use Drupal\views\Plugin\views\HandlerBase;
diff --git a/core/modules/views/src/Plugin/views/argument/Date.php b/core/modules/views/src/Plugin/views/argument/Date.php
index c737d38..2186fa1 100644
--- a/core/modules/views/src/Plugin/views/argument/Date.php
+++ b/core/modules/views/src/Plugin/views/argument/Date.php
@@ -7,13 +7,11 @@
namespace Drupal\views\Plugin\views\argument;
-use Drupal\Core\Database\Database;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\node\NodeInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
-use Symfony\Component\HttpFoundation\Request;
/**
* Abstract argument handler for dates.
diff --git a/core/modules/views/src/Plugin/views/argument_default/ArgumentDefaultPluginBase.php b/core/modules/views/src/Plugin/views/argument_default/ArgumentDefaultPluginBase.php
index b9ebbbc..ff58784 100644
--- a/core/modules/views/src/Plugin/views/argument_default/ArgumentDefaultPluginBase.php
+++ b/core/modules/views/src/Plugin/views/argument_default/ArgumentDefaultPluginBase.php
@@ -8,7 +8,6 @@
namespace Drupal\views\Plugin\views\argument_default;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\views\ViewExecutable;
use Drupal\views\Plugin\views\argument\ArgumentPluginBase;
use Drupal\views\Plugin\views\PluginBase;
diff --git a/core/modules/views/src/Plugin/views/argument_default/Raw.php b/core/modules/views/src/Plugin/views/argument_default/Raw.php
index 77299fd..d3295c1 100644
--- a/core/modules/views/src/Plugin/views/argument_default/Raw.php
+++ b/core/modules/views/src/Plugin/views/argument_default/Raw.php
@@ -13,7 +13,6 @@ use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Path\AliasManagerInterface;
use Drupal\Core\Path\CurrentPathStack;
use Symfony\Component\DependencyInjection\ContainerInterface;
-use Symfony\Component\HttpFoundation\Request;
/**
* Default argument plugin to use the raw value from the URL.
diff --git a/core/modules/views/src/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php b/core/modules/views/src/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php
index 7a6cf67..a21dfb0 100644
--- a/core/modules/views/src/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php
+++ b/core/modules/views/src/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php
@@ -8,7 +8,6 @@
namespace Drupal\views\Plugin\views\argument_validator;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\views\ViewExecutable;
use Drupal\views\Plugin\views\argument\ArgumentPluginBase;
use Drupal\views\Plugin\views\PluginBase;
diff --git a/core/modules/views/src/Plugin/views/argument_validator/Entity.php b/core/modules/views/src/Plugin/views/argument_validator/Entity.php
index b5362b0..4f918e4 100644
--- a/core/modules/views/src/Plugin/views/argument_validator/Entity.php
+++ b/core/modules/views/src/Plugin/views/argument_validator/Entity.php
@@ -7,7 +7,6 @@
namespace Drupal\views\Plugin\views\argument_validator;
-use Drupal\Core\Config\Entity\ConfigEntityInterface;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Form\FormStateInterface;
diff --git a/core/modules/views/src/Plugin/views/cache/CachePluginBase.php b/core/modules/views/src/Plugin/views/cache/CachePluginBase.php
index 9b31126..f04232e 100644
--- a/core/modules/views/src/Plugin/views/cache/CachePluginBase.php
+++ b/core/modules/views/src/Plugin/views/cache/CachePluginBase.php
@@ -12,7 +12,6 @@ use Drupal\Core\Cache\CacheableMetadata;
use Drupal\views\Plugin\views\PluginBase;
use Drupal\Core\Database\Query\Select;
use Drupal\views\ResultRow;
-use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* @defgroup views_cache_plugins Views cache plugins
diff --git a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
index 54121c5..21ea4d2 100644
--- a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
+++ b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
@@ -17,15 +17,12 @@ use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Plugin\PluginDependencyTrait;
use Drupal\Core\Session\AccountInterface;
-use Drupal\Core\Theme\Registry;
use Drupal\Core\Url;
use Drupal\views\Form\ViewsForm;
use Drupal\views\Plugin\views\area\AreaPluginBase;
use Drupal\views\ViewExecutable;
use Drupal\views\Plugin\views\PluginBase;
use Drupal\views\Views;
-use Symfony\Cmf\Component\Routing\RouteObjectInterface;
-use Symfony\Component\DependencyInjection\Exception\RuntimeException as DependencyInjectionRuntimeException;
/**
* Base class for views display plugins.
diff --git a/core/modules/views/src/Plugin/views/display/Feed.php b/core/modules/views/src/Plugin/views/display/Feed.php
index 9a02de0..d01cbb8 100644
--- a/core/modules/views/src/Plugin/views/display/Feed.php
+++ b/core/modules/views/src/Plugin/views/display/Feed.php
@@ -12,7 +12,6 @@ use Drupal\Core\Cache\CacheableResponse;
use Drupal\Core\Form\FormStateInterface;
use Drupal\views\ViewExecutable;
use Drupal\views\Views;
-use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
/**
diff --git a/core/modules/views/src/Plugin/views/display/Page.php b/core/modules/views/src/Plugin/views/display/Page.php
index 656105c..2c45ccf 100644
--- a/core/modules/views/src/Plugin/views/display/Page.php
+++ b/core/modules/views/src/Plugin/views/display/Page.php
@@ -13,8 +13,6 @@ use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\State\StateInterface;
use Drupal\Core\Routing\RouteProviderInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
-use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
-use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\Routing\Route;
/**
diff --git a/core/modules/views/src/Plugin/views/display/PathPluginBase.php b/core/modules/views/src/Plugin/views/display/PathPluginBase.php
index 599e7f0..aab4f6d 100644
--- a/core/modules/views/src/Plugin/views/display/PathPluginBase.php
+++ b/core/modules/views/src/Plugin/views/display/PathPluginBase.php
@@ -8,7 +8,6 @@
namespace Drupal\views\Plugin\views\display;
use Drupal\Component\Utility\UrlHelper;
-use Drupal\Core\Access\AccessManagerInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Routing\UrlGeneratorTrait;
@@ -17,7 +16,6 @@ use Drupal\Core\Routing\RouteCompiler;
use Drupal\Core\Routing\RouteProviderInterface;
use Drupal\Core\Url;
use Drupal\views\Views;
-
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
diff --git a/core/modules/views/src/Plugin/views/display_extender/DisplayExtenderPluginBase.php b/core/modules/views/src/Plugin/views/display_extender/DisplayExtenderPluginBase.php
index aebc614..760df48 100644
--- a/core/modules/views/src/Plugin/views/display_extender/DisplayExtenderPluginBase.php
+++ b/core/modules/views/src/Plugin/views/display_extender/DisplayExtenderPluginBase.php
@@ -8,7 +8,6 @@
namespace Drupal\views\Plugin\views\display_extender;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\views\ViewExecutable;
use Drupal\views\Plugin\views\PluginBase;
/**
diff --git a/core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php b/core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php
index c30f899..99a5ad0 100644
--- a/core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php
+++ b/core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php
@@ -12,9 +12,6 @@ use Drupal\Core\Cache\Cache;
use Drupal\Core\Cache\CacheableDependencyInterface;
use Drupal\Core\Form\FormState;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\views\Form\ViewsExposedForm;
-use Drupal\views\ViewExecutable;
-use Drupal\views\Plugin\views\display\DisplayPluginBase;
use Drupal\views\Plugin\views\PluginBase;
/**
diff --git a/core/modules/views/src/Plugin/views/field/EntityLabel.php b/core/modules/views/src/Plugin/views/field/EntityLabel.php
index 58b9687..dc2dd2e 100644
--- a/core/modules/views/src/Plugin/views/field/EntityLabel.php
+++ b/core/modules/views/src/Plugin/views/field/EntityLabel.php
@@ -9,7 +9,6 @@ namespace Drupal\views\Plugin\views\field;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\views\Plugin\views\field\FieldPluginBase;
use Drupal\views\ResultRow;
use Drupal\views\ViewExecutable;
use Drupal\views\Plugin\views\display\DisplayPluginBase;
diff --git a/core/modules/views/src/Plugin/views/field/FieldPluginBase.php b/core/modules/views/src/Plugin/views/field/FieldPluginBase.php
index 7275bc4..fb2ec96 100644
--- a/core/modules/views/src/Plugin/views/field/FieldPluginBase.php
+++ b/core/modules/views/src/Plugin/views/field/FieldPluginBase.php
@@ -8,13 +8,11 @@
namespace Drupal\views\Plugin\views\field;
use Drupal\Component\Utility\Html;
-use Drupal\Component\Utility\NestedArray;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\Component\Render\MarkupInterface;
use Drupal\Component\Utility\Unicode;
use Drupal\Component\Utility\UrlHelper;
use Drupal\Component\Utility\Xss;
-use Drupal\Core\Cache\Cache;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\Renderer;
use Drupal\Core\Url as CoreUrl;
diff --git a/core/modules/views/src/Plugin/views/field/LinkBase.php b/core/modules/views/src/Plugin/views/field/LinkBase.php
index f57710a..6ffc304 100644
--- a/core/modules/views/src/Plugin/views/field/LinkBase.php
+++ b/core/modules/views/src/Plugin/views/field/LinkBase.php
@@ -8,8 +8,6 @@
namespace Drupal\views\Plugin\views\field;
use Drupal\Core\Access\AccessManagerInterface;
-use Drupal\Core\Access\AccessResultInterface;
-use Drupal\Core\Cache\CacheableDependencyInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\BubbleableMetadata;
use Drupal\Core\Routing\RedirectDestinationTrait;
diff --git a/core/modules/views/src/Plugin/views/field/MachineName.php b/core/modules/views/src/Plugin/views/field/MachineName.php
index a31d7f2..d6f9803 100644
--- a/core/modules/views/src/Plugin/views/field/MachineName.php
+++ b/core/modules/views/src/Plugin/views/field/MachineName.php
@@ -7,7 +7,6 @@
namespace Drupal\views\Plugin\views\field;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Form\FormStateInterface;
use Drupal\views\ResultRow;
diff --git a/core/modules/views/src/Plugin/views/filter/Bundle.php b/core/modules/views/src/Plugin/views/filter/Bundle.php
index e328dfc..cfea7a8 100644
--- a/core/modules/views/src/Plugin/views/filter/Bundle.php
+++ b/core/modules/views/src/Plugin/views/filter/Bundle.php
@@ -7,7 +7,6 @@
namespace Drupal\views\Plugin\views\filter;
-use Drupal\Core\Config\Entity\ConfigEntityInterface;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\views\ViewExecutable;
use Drupal\views\Plugin\views\display\DisplayPluginBase;
diff --git a/core/modules/views/src/Plugin/views/filter/NumericFilter.php b/core/modules/views/src/Plugin/views/filter/NumericFilter.php
index 51bd8f7..1164028 100644
--- a/core/modules/views/src/Plugin/views/filter/NumericFilter.php
+++ b/core/modules/views/src/Plugin/views/filter/NumericFilter.php
@@ -7,7 +7,6 @@
namespace Drupal\views\Plugin\views\filter;
-use Drupal\Core\Database\Database;
use Drupal\Core\Form\FormStateInterface;
/**
diff --git a/core/modules/views/src/Plugin/views/filter/StringFilter.php b/core/modules/views/src/Plugin/views/filter/StringFilter.php
index ffa2a00..4068237 100644
--- a/core/modules/views/src/Plugin/views/filter/StringFilter.php
+++ b/core/modules/views/src/Plugin/views/filter/StringFilter.php
@@ -7,7 +7,6 @@
namespace Drupal\views\Plugin\views\filter;
-use Drupal\Core\Database\Database;
use Drupal\Core\Form\FormStateInterface;
/**
diff --git a/core/modules/views/src/Plugin/views/pager/PagerPluginBase.php b/core/modules/views/src/Plugin/views/pager/PagerPluginBase.php
index 72b578a..68f8567 100644
--- a/core/modules/views/src/Plugin/views/pager/PagerPluginBase.php
+++ b/core/modules/views/src/Plugin/views/pager/PagerPluginBase.php
@@ -9,7 +9,6 @@ namespace Drupal\views\Plugin\views\pager;
use Drupal\Core\Form\FormStateInterface;
use Drupal\views\Plugin\views\PluginBase;
-use Drupal\views\ViewExecutable;
/**
* @defgroup views_pager_plugins Views pager plugins
diff --git a/core/modules/views/src/Plugin/views/query/QueryPluginBase.php b/core/modules/views/src/Plugin/views/query/QueryPluginBase.php
index f73f16f..e16b37b 100644
--- a/core/modules/views/src/Plugin/views/query/QueryPluginBase.php
+++ b/core/modules/views/src/Plugin/views/query/QueryPluginBase.php
@@ -11,7 +11,6 @@ use Drupal\Core\Cache\Cache;
use Drupal\Core\Cache\CacheableDependencyInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\views\Plugin\views\PluginBase;
-use Drupal\views\Plugin\views\display\DisplayPluginBase;
use Drupal\views\ViewExecutable;
use Drupal\views\Views;
diff --git a/core/modules/views/src/Plugin/views/relationship/EntityReverse.php b/core/modules/views/src/Plugin/views/relationship/EntityReverse.php
index 49d5527..ffc0cb9 100644
--- a/core/modules/views/src/Plugin/views/relationship/EntityReverse.php
+++ b/core/modules/views/src/Plugin/views/relationship/EntityReverse.php
@@ -8,9 +8,6 @@
namespace Drupal\views\Plugin\views\relationship;
use Drupal\views\Plugin\ViewsHandlerManager;
-use Drupal\views\Plugin\views\display\DisplayPluginBase;
-use Drupal\views\Plugin\views\relationship\RelationshipPluginBase;
-use Drupal\views\ViewExecutable;
use Drupal\views\Views;
use Symfony\Component\DependencyInjection\ContainerInterface;
diff --git a/core/modules/views/src/Plugin/views/row/RowPluginBase.php b/core/modules/views/src/Plugin/views/row/RowPluginBase.php
index 059a415..931fd52 100644
--- a/core/modules/views/src/Plugin/views/row/RowPluginBase.php
+++ b/core/modules/views/src/Plugin/views/row/RowPluginBase.php
@@ -9,7 +9,6 @@ namespace Drupal\views\Plugin\views\row;
use Drupal\Core\Form\FormStateInterface;
use Drupal\views\Plugin\views\PluginBase;
-use Drupal\views\ViewExecutable;
use Drupal\views\Views;
/**
diff --git a/core/modules/views/src/Plugin/views/style/DefaultSummary.php b/core/modules/views/src/Plugin/views/style/DefaultSummary.php
index 63cf9dc..db62f0e 100644
--- a/core/modules/views/src/Plugin/views/style/DefaultSummary.php
+++ b/core/modules/views/src/Plugin/views/style/DefaultSummary.php
@@ -8,7 +8,6 @@
namespace Drupal\views\Plugin\views\style;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\views\Plugin\views\style\StylePluginBase;
/**
* The default style plugin for summaries.
diff --git a/core/modules/views/src/Plugin/views/style/Table.php b/core/modules/views/src/Plugin/views/style/Table.php
index 92cd120..7e9c2e3 100644
--- a/core/modules/views/src/Plugin/views/style/Table.php
+++ b/core/modules/views/src/Plugin/views/style/Table.php
@@ -7,13 +7,10 @@
namespace Drupal\views\Plugin\views\style;
-use Drupal\Component\Plugin\Discovery\DiscoveryInterface;
use Drupal\Component\Utility\Html;
use Drupal\Core\Cache\CacheableDependencyInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\views\Plugin\views\wizard\WizardInterface;
-use Symfony\Component\DependencyInjection\ContainerInterface;
-use Symfony\Component\HttpFoundation\Request;
/**
* Style plugin to render each item as a row in a table.
diff --git a/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php b/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php
index 946d752..4632db4 100644
--- a/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php
+++ b/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php
@@ -15,7 +15,6 @@ use Drupal\views\Views;
use Drupal\views_ui\ViewUI;
use Drupal\views\Plugin\views\display\DisplayPluginBase;
use Drupal\views\Plugin\views\PluginBase;
-use Drupal\views\Plugin\views\wizard\WizardInterface;
/**
* @defgroup views_wizard_plugins Views wizard plugins
diff --git a/core/modules/views/src/Tests/EventSubscriber/ViewsEntitySchemaSubscriberIntegrationTest.php b/core/modules/views/src/Tests/EventSubscriber/ViewsEntitySchemaSubscriberIntegrationTest.php
index b7e29b5..1f8491a 100644
--- a/core/modules/views/src/Tests/EventSubscriber/ViewsEntitySchemaSubscriberIntegrationTest.php
+++ b/core/modules/views/src/Tests/EventSubscriber/ViewsEntitySchemaSubscriberIntegrationTest.php
@@ -10,7 +10,6 @@ namespace Drupal\views\Tests\EventSubscriber;
use Drupal\Core\Entity\EntityTypeEvent;
use Drupal\Core\Entity\EntityTypeEvents;
use Drupal\system\Tests\Entity\EntityDefinitionTestTrait;
-use Drupal\views\Entity\View;
use Drupal\views\Tests\ViewKernelTestBase;
/**
diff --git a/core/modules/views/src/Tests/Handler/FieldDropButtonTest.php b/core/modules/views/src/Tests/Handler/FieldDropButtonTest.php
index 5de614b..574f7e4 100644
--- a/core/modules/views/src/Tests/Handler/FieldDropButtonTest.php
+++ b/core/modules/views/src/Tests/Handler/FieldDropButtonTest.php
@@ -7,8 +7,6 @@
namespace Drupal\views\Tests\Handler;
-use Drupal\views\Tests\ViewTestData;
-
/**
* Tests the dropbutton field handler.
*
diff --git a/core/modules/views/src/Tests/Handler/FieldEntityOperationsTest.php b/core/modules/views/src/Tests/Handler/FieldEntityOperationsTest.php
index e92b024..665c016 100644
--- a/core/modules/views/src/Tests/Handler/FieldEntityOperationsTest.php
+++ b/core/modules/views/src/Tests/Handler/FieldEntityOperationsTest.php
@@ -8,7 +8,6 @@
namespace Drupal\views\Tests\Handler;
use Drupal\Core\Url;
-use Drupal\entity_test\Entity\EntityTest;
use Drupal\language\Entity\ConfigurableLanguage;
use Drupal\node\Entity\Node;
diff --git a/core/modules/views/src/Tests/Plugin/AccessTest.php b/core/modules/views/src/Tests/Plugin/AccessTest.php
index 5ee6c98..b16603d 100644
--- a/core/modules/views/src/Tests/Plugin/AccessTest.php
+++ b/core/modules/views/src/Tests/Plugin/AccessTest.php
@@ -7,7 +7,6 @@
namespace Drupal\views\Tests\Plugin;
-use Drupal\Core\Cache\Cache;
use Drupal\views\Tests\ViewTestData;
use Drupal\views\Views;
diff --git a/core/modules/views/src/Tests/Plugin/DisplayExtenderTest.php b/core/modules/views/src/Tests/Plugin/DisplayExtenderTest.php
index 37ce57d..019fb44 100644
--- a/core/modules/views/src/Tests/Plugin/DisplayExtenderTest.php
+++ b/core/modules/views/src/Tests/Plugin/DisplayExtenderTest.php
@@ -7,7 +7,6 @@
namespace Drupal\views\Tests\Plugin;
-use Drupal\views\Tests\Plugin\PluginTestBase;
use Drupal\views\Views;
/**
diff --git a/core/modules/views/src/Tests/Plugin/DisplayPageTest.php b/core/modules/views/src/Tests/Plugin/DisplayPageTest.php
index d04d951..5ce2d3f 100644
--- a/core/modules/views/src/Tests/Plugin/DisplayPageTest.php
+++ b/core/modules/views/src/Tests/Plugin/DisplayPageTest.php
@@ -11,7 +11,6 @@ use Drupal\Core\Menu\MenuTreeParameters;
use Drupal\Core\Session\AnonymousUserSession;
use Drupal\views\Views;
use Drupal\views\Tests\ViewKernelTestBase;
-use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\HttpKernelInterface;
diff --git a/core/modules/views/src/Tests/Plugin/StyleGridTest.php b/core/modules/views/src/Tests/Plugin/StyleGridTest.php
index ea212dd..6dbac6b 100644
--- a/core/modules/views/src/Tests/Plugin/StyleGridTest.php
+++ b/core/modules/views/src/Tests/Plugin/StyleGridTest.php
@@ -9,7 +9,6 @@ namespace Drupal\views\Tests\Plugin;
use Drupal\views\Views;
use Drupal\views\ViewExecutable;
-use Symfony\Component\HttpFoundation\Request;
/**
* Tests the grid style plugin.
diff --git a/core/modules/views/src/Tests/Plugin/ViewsBlockTest.php b/core/modules/views/src/Tests/Plugin/ViewsBlockTest.php
index 9e056a2..1cb8b09 100644
--- a/core/modules/views/src/Tests/Plugin/ViewsBlockTest.php
+++ b/core/modules/views/src/Tests/Plugin/ViewsBlockTest.php
@@ -7,7 +7,6 @@
namespace Drupal\views\Tests\Plugin;
-use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\views\Plugin\Block\ViewsBlock;
use Drupal\views\Tests\ViewTestData;
use Drupal\views\Tests\ViewKernelTestBase;
diff --git a/core/modules/views/src/Tests/Plugin/ViewsFormTest.php b/core/modules/views/src/Tests/Plugin/ViewsFormTest.php
index bbdd42a..eabecb1 100644
--- a/core/modules/views/src/Tests/Plugin/ViewsFormTest.php
+++ b/core/modules/views/src/Tests/Plugin/ViewsFormTest.php
@@ -8,7 +8,6 @@
namespace Drupal\views\Tests\Plugin;
use Drupal\simpletest\WebTestBase;
-use Drupal\views\Views;
/**
* Tests Views forms functionality.
diff --git a/core/modules/views/src/Tests/ViewKernelTestBase.php b/core/modules/views/src/Tests/ViewKernelTestBase.php
index 61036e0..fe794ea 100644
--- a/core/modules/views/src/Tests/ViewKernelTestBase.php
+++ b/core/modules/views/src/Tests/ViewKernelTestBase.php
@@ -8,10 +8,8 @@
namespace Drupal\views\Tests;
use Drupal\Core\Database\Query\SelectInterface;
-use Drupal\views\ViewExecutable;
use Drupal\views\ViewsBundle;
use Drupal\simpletest\KernelTestBase;
-use Symfony\Component\HttpFoundation\Request;
/**
* Defines a base class for Views unit testing.
diff --git a/core/modules/views/src/Tests/ViewRenderTest.php b/core/modules/views/src/Tests/ViewRenderTest.php
index bbf3fe1..5c42cce 100644
--- a/core/modules/views/src/Tests/ViewRenderTest.php
+++ b/core/modules/views/src/Tests/ViewRenderTest.php
@@ -7,7 +7,6 @@
namespace Drupal\views\Tests;
-use Drupal\views\Tests\ViewTestBase;
use Drupal\views\Views;
/**
diff --git a/core/modules/views/src/Tests/ViewResultAssertionTrait.php b/core/modules/views/src/Tests/ViewResultAssertionTrait.php
index 8525e80..66685fa 100644
--- a/core/modules/views/src/Tests/ViewResultAssertionTrait.php
+++ b/core/modules/views/src/Tests/ViewResultAssertionTrait.php
@@ -8,7 +8,6 @@
namespace Drupal\views\Tests;
use Drupal\views\Plugin\views\field\Field;
-use Drupal\views\ViewExecutable;
/**
* Provides a class for assertions to check for the expected result of a View.
diff --git a/core/modules/views/src/Tests/ViewStorageTest.php b/core/modules/views/src/Tests/ViewStorageTest.php
index 08432c4..7728b1f 100644
--- a/core/modules/views/src/Tests/ViewStorageTest.php
+++ b/core/modules/views/src/Tests/ViewStorageTest.php
@@ -8,11 +8,8 @@
namespace Drupal\views\Tests;
use Drupal\Core\Entity\EntityTypeInterface;
-use Drupal\Core\Config\Entity\ConfigEntityStorage;
use Drupal\views\Entity\View;
use Drupal\views\Plugin\views\display\Page;
-use Drupal\views\Plugin\views\display\DefaultDisplay;
-use Drupal\views\Plugin\views\display\Feed;
use Drupal\views\Views;
/**
diff --git a/core/modules/views/src/Tests/ViewsTemplateTest.php b/core/modules/views/src/Tests/ViewsTemplateTest.php
index c67befe..17c2cdf 100644
--- a/core/modules/views/src/Tests/ViewsTemplateTest.php
+++ b/core/modules/views/src/Tests/ViewsTemplateTest.php
@@ -7,7 +7,6 @@
namespace Drupal\views\Tests;
-use Drupal\views\Tests\ViewTestBase;
use Drupal\views\Views;
/**
diff --git a/core/modules/views/src/ViewExecutable.php b/core/modules/views/src/ViewExecutable.php
index d2d1fa5..2646c56 100644
--- a/core/modules/views/src/ViewExecutable.php
+++ b/core/modules/views/src/ViewExecutable.php
@@ -8,15 +8,11 @@
namespace Drupal\views;
use Drupal\Component\Utility\Html;
-use Drupal\Core\Cache\Cache;
use Drupal\Core\DependencyInjection\DependencySerializationTrait;
use Drupal\Core\Form\FormState;
use Drupal\Core\Routing\RouteProviderInterface;
use Drupal\Core\Session\AccountInterface;
-use Drupal\Core\Url;
use Drupal\views\Plugin\views\display\DisplayRouterInterface;
-use Drupal\views\Plugin\views\query\QueryPluginBase;
-use Drupal\views\ViewEntityInterface;
use Drupal\Component\Utility\Tags;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
diff --git a/core/modules/views/src/ViewExecutableFactory.php b/core/modules/views/src/ViewExecutableFactory.php
index 0975a48..0d91100 100644
--- a/core/modules/views/src/ViewExecutableFactory.php
+++ b/core/modules/views/src/ViewExecutableFactory.php
@@ -9,7 +9,6 @@ namespace Drupal\views;
use Drupal\Core\Routing\RouteProviderInterface;
use Drupal\Core\Session\AccountInterface;
-use Drupal\views\ViewEntityInterface;
use Symfony\Component\HttpFoundation\RequestStack;
/**
diff --git a/core/modules/views/tests/modules/views_test_data/views_test_data.module b/core/modules/views/tests/modules/views_test_data/views_test_data.module
index ecf65b1..5853fd5 100644
--- a/core/modules/views/tests/modules/views_test_data/views_test_data.module
+++ b/core/modules/views/tests/modules/views_test_data/views_test_data.module
@@ -5,8 +5,6 @@
* Helper module for Views tests.
*/
-use Drupal\views\ViewExecutable;
-
/**
* Access callback for the generic handler test.
*
diff --git a/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php b/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php
index d285021..98dcb1d 100644
--- a/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php
+++ b/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php
@@ -9,7 +9,6 @@ namespace Drupal\Tests\views\Unit\Plugin\field {
use Drupal\Core\GeneratedUrl;
use Drupal\Core\Language\Language;
-use Drupal\Core\Render\RendererInterface;
use Drupal\Core\Render\Markup;
use Drupal\Core\Url;
use Drupal\Core\Utility\LinkGenerator;
diff --git a/core/modules/views/views.module b/core/modules/views/views.module
index 30c92f3..7ee7671 100644
--- a/core/modules/views/views.module
+++ b/core/modules/views/views.module
@@ -11,17 +11,13 @@
use Drupal\Component\Utility\Html;
use Drupal\Component\Utility\SafeMarkup;
-use Drupal\Core\Cache\Cache;
use Drupal\Core\Database\Query\AlterableInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\Element;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Url;
use Drupal\views\Plugin\Derivative\ViewsLocalTask;
-use Drupal\Core\Template\AttributeArray;
-use Drupal\views\Plugin\views\display\Page;
use Drupal\views\ViewExecutable;
-use Drupal\Component\Plugin\Exception\PluginException;
use Drupal\views\Entity\View;
use Drupal\views\Render\ViewsRenderPipelineMarkup;
use Drupal\views\Views;
diff --git a/core/modules/views_ui/admin.inc b/core/modules/views_ui/admin.inc
index 6170ed4..01bcf7a 100644
--- a/core/modules/views_ui/admin.inc
+++ b/core/modules/views_ui/admin.inc
@@ -6,12 +6,8 @@
*/
use Drupal\Component\Utility\NestedArray;
-use Drupal\Component\Utility\Tags;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
-use Drupal\views\ViewExecutable;
-use Drupal\views\Views;
-use Drupal\taxonomy\Entity\Vocabulary;
/**
* Converts a form element in the add view wizard to be AJAX-enabled.
diff --git a/core/modules/views_ui/src/Form/Ajax/Analyze.php b/core/modules/views_ui/src/Form/Ajax/Analyze.php
index b53800d..7daddce 100644
--- a/core/modules/views_ui/src/Form/Ajax/Analyze.php
+++ b/core/modules/views_ui/src/Form/Ajax/Analyze.php
@@ -9,8 +9,6 @@ namespace Drupal\views_ui\Form\Ajax;
use Drupal\Core\Form\FormStateInterface;
use Drupal\views\Views;
-use Drupal\views_ui\ViewUI;
-use Drupal\views\Analyzer;
/**
* Displays analysis information for a view.
diff --git a/core/modules/views_ui/src/Form/Ajax/EditDetails.php b/core/modules/views_ui/src/Form/Ajax/EditDetails.php
index 6790029..9e25ece 100644
--- a/core/modules/views_ui/src/Form/Ajax/EditDetails.php
+++ b/core/modules/views_ui/src/Form/Ajax/EditDetails.php
@@ -9,7 +9,6 @@ namespace Drupal\views_ui\Form\Ajax;
use Drupal\Core\Form\FormStateInterface;
use Drupal\views\Views;
-use Drupal\views_ui\ViewUI;
/**
* Provides a form for editing the details of a View.
diff --git a/core/modules/views_ui/src/Form/Ajax/ReorderDisplays.php b/core/modules/views_ui/src/Form/Ajax/ReorderDisplays.php
index d3db3dd..6274637 100644
--- a/core/modules/views_ui/src/Form/Ajax/ReorderDisplays.php
+++ b/core/modules/views_ui/src/Form/Ajax/ReorderDisplays.php
@@ -10,7 +10,6 @@ namespace Drupal\views_ui\Form\Ajax;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
-use Drupal\views_ui\ViewUI;
/**
* Displays the display reorder form.
diff --git a/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php b/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php
index 565329f..b3edb64 100644
--- a/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php
+++ b/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php
@@ -14,7 +14,6 @@ use Drupal\Core\Form\FormState;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\BubbleableMetadata;
use Drupal\Core\Render\RenderContext;
-use Drupal\views_ui\ViewUI;
use Drupal\views\ViewEntityInterface;
use Drupal\views\Ajax;
use Drupal\Core\Ajax\AjaxResponse;
diff --git a/core/modules/views_ui/src/Tests/QueryTest.php b/core/modules/views_ui/src/Tests/QueryTest.php
index bed0422..cda040c 100644
--- a/core/modules/views_ui/src/Tests/QueryTest.php
+++ b/core/modules/views_ui/src/Tests/QueryTest.php
@@ -9,8 +9,6 @@ namespace Drupal\views_ui\Tests;
use Drupal\views\Views;
use Drupal\views\Entity\View;
-use Drupal\views\Tests\ViewTestBase;
-use Drupal\views_test_data\Plugin\views\query\QueryTest as QueryTestPlugin;
/**
* Tests query plugins.
diff --git a/core/modules/views_ui/src/Tests/ViewEditTest.php b/core/modules/views_ui/src/Tests/ViewEditTest.php
index ee5cc60..71dcaa0 100644
--- a/core/modules/views_ui/src/Tests/ViewEditTest.php
+++ b/core/modules/views_ui/src/Tests/ViewEditTest.php
@@ -9,7 +9,6 @@ namespace Drupal\views_ui\Tests;
use Drupal\language\Entity\ConfigurableLanguage;
use Drupal\views\Entity\View;
-use Drupal\views\Views;
/**
* Tests some general functionality of editing views, like deleting a view.
diff --git a/core/modules/views_ui/tests/src/Unit/ViewUIObjectTest.php b/core/modules/views_ui/tests/src/Unit/ViewUIObjectTest.php
index cb26b58..c6d7726 100644
--- a/core/modules/views_ui/tests/src/Unit/ViewUIObjectTest.php
+++ b/core/modules/views_ui/tests/src/Unit/ViewUIObjectTest.php
@@ -10,9 +10,7 @@ namespace Drupal\Tests\views_ui\Unit;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Tests\UnitTestCase;
use Drupal\views\Entity\View;
-use Drupal\views\ViewExecutable;
use Drupal\views_ui\ViewUI;
-use Symfony\Component\DependencyInjection\Container;
use Symfony\Component\DependencyInjection\ContainerBuilder;
/**
diff --git a/core/modules/views_ui/views_ui.module b/core/modules/views_ui/views_ui.module
index 57a84ed..60fdc51 100644
--- a/core/modules/views_ui/views_ui.module
+++ b/core/modules/views_ui/views_ui.module
@@ -10,7 +10,6 @@ use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Url;
use Drupal\views\ViewExecutable;
use Drupal\views\Analyzer;
-use Drupal\Component\Utility\Xss;
/**
* Implements hook_help().
diff --git a/core/profiles/standard/standard.install b/core/profiles/standard/standard.install
index fa8c756..744963a 100644
--- a/core/profiles/standard/standard.install
+++ b/core/profiles/standard/standard.install
@@ -4,7 +4,6 @@
* Install, update and uninstall functions for the standard installation profile.
*/
-use Drupal\comment\Plugin\Field\FieldType\CommentItemInterface;
use Drupal\user\Entity\User;
use Drupal\user\RoleInterface;
diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh
index 1b93148..9ca309f 100755
--- a/core/scripts/run-tests.sh
+++ b/core/scripts/run-tests.sh
@@ -9,8 +9,6 @@ use Drupal\Component\Utility\Html;
use Drupal\Component\Utility\Timer;
use Drupal\Component\Uuid\Php;
use Drupal\Core\Database\Database;
-use Drupal\Core\Form\FormState;
-use Drupal\Core\Site\Settings;
use Drupal\Core\StreamWrapper\PublicStream;
use Drupal\Core\Test\TestRunnerKernel;
use Drupal\simpletest\Form\SimpletestResultsForm;
diff --git a/core/tests/Drupal/KernelTests/Component/Utility/SafeMarkupKernelTest.php b/core/tests/Drupal/KernelTests/Component/Utility/SafeMarkupKernelTest.php
index 273a240..c337f75 100644
--- a/core/tests/Drupal/KernelTests/Component/Utility/SafeMarkupKernelTest.php
+++ b/core/tests/Drupal/KernelTests/Component/Utility/SafeMarkupKernelTest.php
@@ -7,9 +7,7 @@
namespace Drupal\KernelTests\Component\Utility;
-use Drupal\Component\FileCache\FileCacheFactory;
use Drupal\Component\Utility\SafeMarkup;
-use Drupal\Core\Site\Settings;
use Drupal\Core\Url;
use Drupal\KernelTests\KernelTestBase;
diff --git a/core/tests/Drupal/KernelTests/Config/DefaultConfigTest.php b/core/tests/Drupal/KernelTests/Config/DefaultConfigTest.php
index 77270c3..2557737 100644
--- a/core/tests/Drupal/KernelTests/Config/DefaultConfigTest.php
+++ b/core/tests/Drupal/KernelTests/Config/DefaultConfigTest.php
@@ -7,11 +7,9 @@
namespace Drupal\KernelTests\Config;
-use Drupal\Component\FileCache\FileCacheFactory;
use Drupal\Core\Config\FileStorage;
use Drupal\Core\Config\InstallStorage;
use Drupal\Core\Config\StorageInterface;
-use Drupal\Core\Site\Settings;
use Drupal\KernelTests\AssertConfigTrait;
use Drupal\KernelTests\KernelTestBase;
diff --git a/core/tests/Drupal/Tests/Component/DependencyInjection/PhpArrayContainerTest.php b/core/tests/Drupal/Tests/Component/DependencyInjection/PhpArrayContainerTest.php
index 8ad93b3..3a9f4fc 100644
--- a/core/tests/Drupal/Tests/Component/DependencyInjection/PhpArrayContainerTest.php
+++ b/core/tests/Drupal/Tests/Component/DependencyInjection/PhpArrayContainerTest.php
@@ -8,7 +8,6 @@
namespace Drupal\Tests\Component\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerInterface;
-use Symfony\Component\DependencyInjection\Exception\LogicException;
/**
* @coversDefaultClass \Drupal\Component\DependencyInjection\PhpArrayContainer
diff --git a/core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php b/core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php
index 6009e65..f36d836 100644
--- a/core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php
+++ b/core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php
@@ -10,8 +10,6 @@ namespace Drupal\Tests\Component\EventDispatcher;
use Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher;
use Symfony\Component\DependencyInjection\Container;
use Symfony\Component\DependencyInjection\ContainerBuilder;
-use Symfony\Component\EventDispatcher\Event;
-use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\EventDispatcher\Tests\AbstractEventDispatcherTest;
use Symfony\Component\EventDispatcher\Tests\CallableClass;
use Symfony\Component\EventDispatcher\Tests\TestEventListener;
diff --git a/core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php b/core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php
index 3a03535..b0c4b98 100644
--- a/core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php
+++ b/core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php
@@ -9,7 +9,6 @@ namespace Drupal\Tests\Core\Access;
use Drupal\Core\Access\AccessCheckInterface;
use Drupal\Core\Access\AccessResult;
-use Drupal\Core\Access\AccessManagerInterface;
use Drupal\Core\Access\CheckProvider;
use Drupal\Core\Cache\Context\CacheContextsManager;
use Drupal\Core\Routing\RouteMatch;
diff --git a/core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php b/core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php
index ec2abec..7a41edc 100644
--- a/core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php
+++ b/core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php
@@ -11,7 +11,6 @@ use Drupal\Core\Site\Settings;
use Drupal\Tests\UnitTestCase;
use Drupal\Core\Access\CsrfTokenGenerator;
use Drupal\Component\Utility\Crypt;
-use Symfony\Component\HttpFoundation\Request;
/**
* Tests the CsrfTokenGenerator class.
diff --git a/core/tests/Drupal/Tests/Core/Ajax/AjaxResponseTest.php b/core/tests/Drupal/Tests/Core/Ajax/AjaxResponseTest.php
index acf3290..ddb9c24 100644
--- a/core/tests/Drupal/Tests/Core/Ajax/AjaxResponseTest.php
+++ b/core/tests/Drupal/Tests/Core/Ajax/AjaxResponseTest.php
@@ -9,7 +9,6 @@ namespace Drupal\Tests\Core\Ajax;
use Drupal\Core\Ajax\AjaxResponse;
use Drupal\Core\EventSubscriber\AjaxResponseSubscriber;
-use Drupal\Core\Render\Element\Ajax;
use Drupal\Tests\UnitTestCase;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
diff --git a/core/tests/Drupal/Tests/Core/Cache/CacheTest.php b/core/tests/Drupal/Tests/Core/Cache/CacheTest.php
index 6c30996..5c84745 100644
--- a/core/tests/Drupal/Tests/Core/Cache/CacheTest.php
+++ b/core/tests/Drupal/Tests/Core/Cache/CacheTest.php
@@ -7,10 +7,8 @@
namespace Drupal\Tests\Core\Cache;
-use Drupal\Component\Assertion\Inspector;
use Drupal\Core\Cache\Cache;
use Drupal\Tests\UnitTestCase;
-use Symfony\Component\DependencyInjection\ContainerBuilder;
/**
* @coversDefaultClass \Drupal\Core\Cache\Cache
diff --git a/core/tests/Drupal/Tests/Core/Condition/ConditionAccessResolverTraitTest.php b/core/tests/Drupal/Tests/Core/Condition/ConditionAccessResolverTraitTest.php
index b3c4706..e8b4a2f 100644
--- a/core/tests/Drupal/Tests/Core/Condition/ConditionAccessResolverTraitTest.php
+++ b/core/tests/Drupal/Tests/Core/Condition/ConditionAccessResolverTraitTest.php
@@ -8,7 +8,6 @@
namespace Drupal\Tests\Core\Condition;
use Drupal\Component\Plugin\Exception\ContextException;
-use Drupal\Core\Condition\ConditionAccessResolverTrait;
use Drupal\Tests\UnitTestCase;
/**
diff --git a/core/tests/Drupal/Tests/Core/Config/ConfigTest.php b/core/tests/Drupal/Tests/Core/Config/ConfigTest.php
index 06c2cbb..a7ff94b 100644
--- a/core/tests/Drupal/Tests/Core/Config/ConfigTest.php
+++ b/core/tests/Drupal/Tests/Core/Config/ConfigTest.php
@@ -11,7 +11,6 @@ use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\Render\Markup;
use Drupal\Tests\UnitTestCase;
use Drupal\Core\Config\Config;
-use Drupal\Component\Utility\SafeMarkup;
/**
* Tests the Config.
diff --git a/core/tests/Drupal/Tests/Core/Database/ConnectionTest.php b/core/tests/Drupal/Tests/Core/Database/ConnectionTest.php
index 24ba469..a91e241 100644
--- a/core/tests/Drupal/Tests/Core/Database/ConnectionTest.php
+++ b/core/tests/Drupal/Tests/Core/Database/ConnectionTest.php
@@ -8,7 +8,6 @@
namespace Drupal\Tests\Core\Database;
use Drupal\Tests\Core\Database\Stub\StubConnection;
-use Drupal\Tests\Core\Database\Stub\StubPDO;
use Drupal\Tests\UnitTestCase;
/**
diff --git a/core/tests/Drupal/Tests/Core/Database/Driver/pgsql/PostgresqlConnectionTest.php b/core/tests/Drupal/Tests/Core/Database/Driver/pgsql/PostgresqlConnectionTest.php
index b177261..34a59fe 100644
--- a/core/tests/Drupal/Tests/Core/Database/Driver/pgsql/PostgresqlConnectionTest.php
+++ b/core/tests/Drupal/Tests/Core/Database/Driver/pgsql/PostgresqlConnectionTest.php
@@ -7,7 +7,6 @@
namespace Drupal\Tests\Core\Database\Driver\pgsql;
use Drupal\Core\Database\Driver\pgsql\Connection;
-use Drupal\Tests\Core\Database\Stub\StubPDO;
use Drupal\Tests\UnitTestCase;
/**
diff --git a/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/BackendCompilerPassTest.php b/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/BackendCompilerPassTest.php
index ae11ee5..2efb13f 100644
--- a/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/BackendCompilerPassTest.php
+++ b/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/BackendCompilerPassTest.php
@@ -7,7 +7,6 @@
namespace Drupal\Tests\Core\DependencyInjection\Compiler;
-use Drupal\Core\Database\Driver\sqlite\Connection;
use Drupal\Core\DependencyInjection\Compiler\BackendCompilerPass;
use Drupal\Tests\UnitTestCase;
use Symfony\Component\DependencyInjection\Alias;
diff --git a/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/ProxyServicesPassTest.php b/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/ProxyServicesPassTest.php
index 2567513..320ce70 100644
--- a/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/ProxyServicesPassTest.php
+++ b/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/ProxyServicesPassTest.php
@@ -11,7 +11,6 @@ namespace Drupal\Tests\Core\DependencyInjection\Compiler;
use Drupal\Core\DependencyInjection\Compiler\ProxyServicesPass;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Tests\UnitTestCase;
-use Symfony\Component\DependencyInjection\Reference;
/**
* @coversDefaultClass \Drupal\Core\DependencyInjection\Compiler\ProxyServicesPass
diff --git a/core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php b/core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php
index 3a21211..3f1e2e0 100644
--- a/core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php
+++ b/core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php
@@ -11,9 +11,7 @@ use Drupal\Core\Access\AccessResult;
use Drupal\Core\Cache\Cache;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\Entity\Entity;
-use Drupal\Core\Entity\Exception\NoCorrespondingEntityClassException;
use Drupal\Core\Language\Language;
-use Drupal\entity_test\Entity\EntityTest;
use Drupal\entity_test\Entity\EntityTestMul;
use Drupal\Tests\UnitTestCase;
diff --git a/core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php b/core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php
index 330695e..32c8d5e 100644
--- a/core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php
+++ b/core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php
@@ -6,8 +6,8 @@
*/
namespace Drupal\Tests\Core\Entity\Sql;
+
use Drupal\Core\Entity\Sql\DefaultTableMapping;
-use Drupal\Core\Entity\Sql\SqlContentEntityStorageException;
use Drupal\Tests\UnitTestCase;
/**
diff --git a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php
index 16f66c3..34013c4 100644
--- a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php
+++ b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php
@@ -11,10 +11,7 @@ use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Entity\Sql\SqlContentEntityStorage;
-use Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema;
-use Drupal\Core\Field\BaseFieldDefinition;
use Drupal\Core\Language\Language;
-use Drupal\Core\Language\LanguageManagerInterface;
use Drupal\Tests\UnitTestCase;
use Symfony\Component\DependencyInjection\ContainerBuilder;
diff --git a/core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php b/core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php
index 672e20b..863ae62 100644
--- a/core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php
+++ b/core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php
@@ -7,11 +7,9 @@
namespace Drupal\Tests\Core\Entity\TypedData;
-use Drupal\Core\Access\AccessResult;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\Entity\Plugin\DataType\EntityAdapter;
use Drupal\Core\Field\BaseFieldDefinition;
-use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Tests\UnitTestCase;
use Drupal\Core\Language\Language;
diff --git a/core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php b/core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php
index 8d0f6bb..035965f 100644
--- a/core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php
+++ b/core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php
@@ -7,7 +7,6 @@
namespace Drupal\Tests\Core\Form\EventSubscriber;
-use Drupal\Core\Ajax\AjaxResponse;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber;
use Drupal\Core\Form\Exception\BrokenPostRequestException;
@@ -18,7 +17,6 @@ use Drupal\Tests\UnitTestCase;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
-use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Symfony\Component\HttpKernel\HttpKernelInterface;
diff --git a/core/tests/Drupal/Tests/Core/Form/FormCacheTest.php b/core/tests/Drupal/Tests/Core/Form/FormCacheTest.php
index c6032f0..71c90bf 100644
--- a/core/tests/Drupal/Tests/Core/Form/FormCacheTest.php
+++ b/core/tests/Drupal/Tests/Core/Form/FormCacheTest.php
@@ -7,7 +7,6 @@
namespace Drupal\Tests\Core\Form;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Form\FormCache;
use Drupal\Core\Form\FormState;
use Drupal\Tests\UnitTestCase;
diff --git a/core/tests/Drupal/Tests/Core/Form/FormTestBase.php b/core/tests/Drupal/Tests/Core/Form/FormTestBase.php
index 83aec87..54f6366 100644
--- a/core/tests/Drupal/Tests/Core/Form/FormTestBase.php
+++ b/core/tests/Drupal/Tests/Core/Form/FormTestBase.php
@@ -12,11 +12,9 @@ use Drupal\Core\Form\FormBuilder;
use Drupal\Core\Form\FormInterface;
use Drupal\Core\Form\FormState;
use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Session\AccountInterface;
use Drupal\Tests\UnitTestCase;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RequestStack;
-use Symfony\Component\HttpFoundation\Response;
/**
* Provides a base class for testing form functionality.
diff --git a/core/tests/Drupal/Tests/Core/Logger/LoggerChannelFactoryTest.php b/core/tests/Drupal/Tests/Core/Logger/LoggerChannelFactoryTest.php
index 6e8fe49..00bce3f 100644
--- a/core/tests/Drupal/Tests/Core/Logger/LoggerChannelFactoryTest.php
+++ b/core/tests/Drupal/Tests/Core/Logger/LoggerChannelFactoryTest.php
@@ -8,9 +8,7 @@
namespace Drupal\Tests\Core\Logger;
use Drupal\Core\Logger\LoggerChannelFactory;
-use Drupal\Core\Session\AccountInterface;
use Drupal\Tests\UnitTestCase;
-use Symfony\Component\HttpFoundation\Request;
/**
* @coversDefaultClass \Drupal\Core\Logger\LoggerChannelFactory
diff --git a/core/tests/Drupal/Tests/Core/Menu/ContextualLinkDefaultTest.php b/core/tests/Drupal/Tests/Core/Menu/ContextualLinkDefaultTest.php
index 7a90abb..fddfff2 100644
--- a/core/tests/Drupal/Tests/Core/Menu/ContextualLinkDefaultTest.php
+++ b/core/tests/Drupal/Tests/Core/Menu/ContextualLinkDefaultTest.php
@@ -10,7 +10,6 @@ namespace Drupal\Tests\Core\Menu;
use Drupal\Core\Menu\ContextualLinkDefault;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Tests\UnitTestCase;
-use Symfony\Component\HttpFoundation\ParameterBag;
use Symfony\Component\HttpFoundation\Request;
/**
diff --git a/core/tests/Drupal/Tests/Core/Menu/LocalActionDefaultTest.php b/core/tests/Drupal/Tests/Core/Menu/LocalActionDefaultTest.php
index 1d1c4dd..f4854bb 100644
--- a/core/tests/Drupal/Tests/Core/Menu/LocalActionDefaultTest.php
+++ b/core/tests/Drupal/Tests/Core/Menu/LocalActionDefaultTest.php
@@ -10,7 +10,6 @@ namespace Drupal\Tests\Core\Menu;
use Drupal\Core\Menu\LocalActionDefault;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Tests\UnitTestCase;
-use Symfony\Component\HttpFoundation\ParameterBag;
use Symfony\Component\HttpFoundation\Request;
/**
diff --git a/core/tests/Drupal/Tests/Core/Menu/LocalActionManagerTest.php b/core/tests/Drupal/Tests/Core/Menu/LocalActionManagerTest.php
index 24a09f2..dcc4f55 100644
--- a/core/tests/Drupal/Tests/Core/Menu/LocalActionManagerTest.php
+++ b/core/tests/Drupal/Tests/Core/Menu/LocalActionManagerTest.php
@@ -14,7 +14,6 @@ use Drupal\Core\Access\AccessResult;
use Drupal\Core\Access\AccessResultForbidden;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
-use Drupal\Core\Language\Language;
use Drupal\Core\Menu\LocalActionManager;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Routing\RouteProviderInterface;
diff --git a/core/tests/Drupal/Tests/Core/Menu/LocalTaskIntegrationTestBase.php b/core/tests/Drupal/Tests/Core/Menu/LocalTaskIntegrationTestBase.php
index 69cc9c5..3a2388d 100644
--- a/core/tests/Drupal/Tests/Core/Menu/LocalTaskIntegrationTestBase.php
+++ b/core/tests/Drupal/Tests/Core/Menu/LocalTaskIntegrationTestBase.php
@@ -7,7 +7,6 @@
namespace Drupal\Tests\Core\Menu;
-use Drupal\Core\Language\Language;
use Drupal\Core\Plugin\Discovery\ContainerDerivativeDiscoveryDecorator;
use Drupal\Core\Plugin\Discovery\YamlDiscovery;
use Drupal\Tests\UnitTestCase;
diff --git a/core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php b/core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php
index c69dcf2..04f1b16 100644
--- a/core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php
+++ b/core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php
@@ -21,7 +21,6 @@ use Prophecy\Argument;
use Symfony\Component\HttpFoundation\ParameterBag;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RequestStack;
-use Zend\Stdlib\ArrayObject;
/**
* @coversDefaultClass \Drupal\Core\Menu\LocalTaskManager
diff --git a/core/tests/Drupal/Tests/Core/Plugin/Discovery/DerivativeDiscoveryDecoratorTest.php b/core/tests/Drupal/Tests/Core/Plugin/Discovery/DerivativeDiscoveryDecoratorTest.php
index 4cc05ad..70d01ec 100644
--- a/core/tests/Drupal/Tests/Core/Plugin/Discovery/DerivativeDiscoveryDecoratorTest.php
+++ b/core/tests/Drupal/Tests/Core/Plugin/Discovery/DerivativeDiscoveryDecoratorTest.php
@@ -8,7 +8,6 @@
namespace Drupal\Tests\Core\Plugin\Discovery;
use Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator;
-use Drupal\Component\Plugin\Exception\InvalidDeriverException;
use Drupal\Tests\UnitTestCase;
/**
diff --git a/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php b/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php
index 72e5893..34eec8a 100644
--- a/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php
@@ -8,7 +8,6 @@
namespace Drupal\Tests\Core\Render;
use Drupal\Core\Cache\Cache;
-use Drupal\Core\Cache\CacheableDependencyInterface;
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Render\BubbleableMetadata;
use Drupal\Tests\UnitTestCase;
diff --git a/core/tests/Drupal/Tests/Core/Render/Element/TableSelectTest.php b/core/tests/Drupal/Tests/Core/Render/Element/TableSelectTest.php
index 649a57f..2040ab6 100644
--- a/core/tests/Drupal/Tests/Core/Render/Element/TableSelectTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/Element/TableSelectTest.php
@@ -11,7 +11,6 @@ use Drupal\Core\Form\FormState;
use Drupal\Core\Link;
use Drupal\Core\Render\Element\Tableselect;
use Drupal\Core\StringTranslation\TranslatableMarkup;
-use Drupal\Core\StringTranslation\TranslationWrapper;
use Drupal\Core\Url;
use Drupal\Tests\UnitTestCase;
diff --git a/core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php b/core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php
index c621e62..5867b2b 100644
--- a/core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php
@@ -10,7 +10,6 @@ namespace Drupal\Tests\Core\Render;
use Drupal\Core\Cache\MemoryBackend;
use Drupal\Core\KeyValueStore\KeyValueMemoryFactory;
use Drupal\Core\Render\Element;
-use Drupal\Core\Render\Renderer;
use Drupal\Core\State\State;
use Drupal\Core\Cache\Cache;
diff --git a/core/tests/Drupal/Tests/Core/Render/RendererTest.php b/core/tests/Drupal/Tests/Core/Render/RendererTest.php
index 145a8ab..92b1625 100644
--- a/core/tests/Drupal/Tests/Core/Render/RendererTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/RendererTest.php
@@ -11,7 +11,6 @@ use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Access\AccessResult;
use Drupal\Core\Access\AccessResultInterface;
use Drupal\Core\Cache\Cache;
-use Drupal\Core\Cache\CacheableDependencyInterface;
use Drupal\Core\Render\Element;
use Drupal\Core\Render\Markup;
use Drupal\Core\Template\Attribute;
diff --git a/core/tests/Drupal/Tests/Core/Routing/ContentTypeHeaderMatcherTest.php b/core/tests/Drupal/Tests/Core/Routing/ContentTypeHeaderMatcherTest.php
index 0277585..1f734e7 100644
--- a/core/tests/Drupal/Tests/Core/Routing/ContentTypeHeaderMatcherTest.php
+++ b/core/tests/Drupal/Tests/Core/Routing/ContentTypeHeaderMatcherTest.php
@@ -8,7 +8,6 @@
namespace Drupal\Tests\Core\Routing;
use Drupal\Core\Routing\ContentTypeHeaderMatcher;
-use Drupal\Tests\Core\Routing\RoutingFixtures;
use Drupal\Tests\UnitTestCase;
use Symfony\Component\HttpFoundation\Request;
diff --git a/core/tests/Drupal/Tests/Core/Routing/CurrentRouteMatchTest.php b/core/tests/Drupal/Tests/Core/Routing/CurrentRouteMatchTest.php
index cba533c..b0ad040 100644
--- a/core/tests/Drupal/Tests/Core/Routing/CurrentRouteMatchTest.php
+++ b/core/tests/Drupal/Tests/Core/Routing/CurrentRouteMatchTest.php
@@ -8,8 +8,6 @@
namespace Drupal\Tests\Core\Routing;
use Drupal\Core\Routing\CurrentRouteMatch;
-use Drupal\Core\Routing\RouteMatch;
-use Drupal\Tests\UnitTestCase;
use Symfony\Cmf\Component\Routing\RouteObjectInterface;
use Symfony\Component\HttpFoundation\ParameterBag;
use Symfony\Component\HttpFoundation\Request;
diff --git a/core/tests/Drupal/Tests/Core/Routing/RouteMatchTest.php b/core/tests/Drupal/Tests/Core/Routing/RouteMatchTest.php
index a2ca665..f475ec0 100644
--- a/core/tests/Drupal/Tests/Core/Routing/RouteMatchTest.php
+++ b/core/tests/Drupal/Tests/Core/Routing/RouteMatchTest.php
@@ -8,7 +8,6 @@
namespace Drupal\Tests\Core\Routing;
use Drupal\Core\Routing\RouteMatch;
-use Drupal\Tests\UnitTestCase;
use Symfony\Cmf\Component\Routing\RouteObjectInterface;
use Symfony\Component\HttpFoundation\ParameterBag;
use Symfony\Component\HttpFoundation\Request;
diff --git a/core/tests/Drupal/Tests/Core/Routing/RouteMatchTestBase.php b/core/tests/Drupal/Tests/Core/Routing/RouteMatchTestBase.php
index 519ae4e..846d46a 100644
--- a/core/tests/Drupal/Tests/Core/Routing/RouteMatchTestBase.php
+++ b/core/tests/Drupal/Tests/Core/Routing/RouteMatchTestBase.php
@@ -9,9 +9,6 @@ namespace Drupal\Tests\Core\Routing;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Tests\UnitTestCase;
-use Symfony\Cmf\Component\Routing\RouteObjectInterface;
-use Symfony\Component\HttpFoundation\ParameterBag;
-use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Route;
/**
diff --git a/core/tests/Drupal/Tests/Core/Session/AnonymousUserSessionTest.php b/core/tests/Drupal/Tests/Core/Session/AnonymousUserSessionTest.php
index 043e17e..c3cabec 100644
--- a/core/tests/Drupal/Tests/Core/Session/AnonymousUserSessionTest.php
+++ b/core/tests/Drupal/Tests/Core/Session/AnonymousUserSessionTest.php
@@ -9,11 +9,7 @@ namespace Drupal\Tests\Core\Session;
use Drupal\Tests\UnitTestCase;
use Drupal\Core\Session\AnonymousUserSession;
- use Drupal\user\RoleInterface;
- use Symfony\Component\DependencyInjection\ContainerBuilder;
-use Symfony\Component\DependencyInjection\Definition;
-use Symfony\Component\DependencyInjection\Scope;
-use Symfony\Component\HttpFoundation\RequestStack;
+use Drupal\user\RoleInterface;
/**
* @coversDefaultClass \Drupal\Core\Session\AnonymousUserSession
diff --git a/core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php b/core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php
index 925c310..0fffbb9 100644
--- a/core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php
+++ b/core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php
@@ -12,7 +12,6 @@ use Drupal\Core\Session\PermissionsHashGenerator;
use Drupal\Core\Site\Settings;
use Drupal\Tests\UnitTestCase;
-
/**
* @coversDefaultClass \Drupal\Core\Session\PermissionsHashGenerator
* @group Session
diff --git a/core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php b/core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php
index 59325eb..27f6177 100644
--- a/core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php
+++ b/core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php
@@ -8,7 +8,6 @@
namespace Drupal\Tests\Core\Session;
use Drupal\Tests\UnitTestCase;
-use Drupal\Core\Session\SessionConfiguration;
use Symfony\Component\HttpFoundation\Request;
/**
diff --git a/core/tests/Drupal/Tests/Core/Theme/ThemeNegotiatorTest.php b/core/tests/Drupal/Tests/Core/Theme/ThemeNegotiatorTest.php
index 55a6f7f..0234ded 100644
--- a/core/tests/Drupal/Tests/Core/Theme/ThemeNegotiatorTest.php
+++ b/core/tests/Drupal/Tests/Core/Theme/ThemeNegotiatorTest.php
@@ -10,8 +10,6 @@ namespace Drupal\Tests\Core\Theme;
use Drupal\Core\Routing\RouteMatch;
use Drupal\Core\Theme\ThemeNegotiator;
use Drupal\Tests\UnitTestCase;
-use Symfony\Component\HttpFoundation\Request;
-use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\Routing\Route;
/**
diff --git a/core/tests/Drupal/Tests/UnitTestCase.php b/core/tests/Drupal/Tests/UnitTestCase.php
index a956d19..f2c6f4c 100644
--- a/core/tests/Drupal/Tests/UnitTestCase.php
+++ b/core/tests/Drupal/Tests/UnitTestCase.php
@@ -9,7 +9,6 @@ namespace Drupal\Tests;
use Drupal\Component\FileCache\FileCacheFactory;
use Drupal\Component\Utility\Random;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Cache\CacheTagsInvalidatorInterface;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\StringTranslation\TranslatableMarkup;
diff --git a/core/themes/bartik/bartik.theme b/core/themes/bartik/bartik.theme
index 03dc8b4..3d3ca12 100644
--- a/core/themes/bartik/bartik.theme
+++ b/core/themes/bartik/bartik.theme
@@ -5,7 +5,6 @@
* Functions to support theming in the Bartik theme.
*/
-use Drupal\Component\Utility\Xss;
use Drupal\Core\Template\Attribute;
/**
diff --git a/core/themes/engines/twig/twig.engine b/core/themes/engines/twig/twig.engine
index 44ee5ac..30ec511 100644
--- a/core/themes/engines/twig/twig.engine
+++ b/core/themes/engines/twig/twig.engine
@@ -6,7 +6,6 @@
*/
use Drupal\Component\Utility\Html;
-use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Render\Markup;
use Drupal\Core\Extension\Extension;
diff --git a/core/themes/seven/seven.theme b/core/themes/seven/seven.theme
index 29aaf62..9afa603 100644
--- a/core/themes/seven/seven.theme
+++ b/core/themes/seven/seven.theme
@@ -5,7 +5,6 @@
* Functions to support theming in the Seven theme.
*/
-use Drupal\Component\Utility\Xss;
use Drupal\Core\Form\FormStateInterface;
/**