diff --git a/core/includes/batch.inc b/core/includes/batch.inc index 77fd3a2231b969267417fcc63ac2daf4380b2ab4..6d0c8356cad5af13dce86639e82765f1de95227d 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 6b6d897e67922dd4dea46dc9c887f8347f975553..41c6eb0f49be081a6c5a6539923b632d9d3a6e1f 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 8681d81871cc0e98d31ea77c4fa93d8f7bbc69aa..31492ed4b2caca94e5e254fbbbf753d515797ed9 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 d79381a01c9e31192181a25c14141809ca3979f6..70e8019a8242ebdc74e3a21b69c14dab3ee7dfaa 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 4200b87b86e04e88b2432f2c708947591ace11a2..63f4bb36f5571a61a0c9ea200c0f37fa2aab4288 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 678a6402fa75e270880bff4c2c452d5ea5e4939c..a3d17a7f29fff15d4db4eec5da7a46af4df3cef3 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 bd7b7ecd24b7e87ed4e448db1be6248abea46320..60ef2d7cdc9e9765f4deee2734e31004a3eec919 100644 --- a/core/includes/install.core.inc +++ b/core/includes/install.core.inc @@ -1,6 +1,5 @@