Commit 8b65164c authored by catch's avatar catch

Issue #2533800 by alexpott: Remove all unused use statements from core

parent e3908d21
......@@ -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;
......
......@@ -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.
......
......@@ -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
......
......@@ -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;
/**
......
......@@ -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;
/**
......
......@@ -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;
......
<?php
use Drupal\Component\Utility\SafeMarkup;
use Drupal\Component\Utility\UrlHelper;
use Drupal\Core\DrupalKernel;
use Drupal\Core\Config\BootstrapConfigStorageFactory;
......
......@@ -5,7 +5,6 @@
* API for loading and interacting with Drupal modules.
*/
use Drupal\Core\Cache\Cache;
use Drupal\Core\Extension\ExtensionDiscovery;
/**
......
......@@ -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;
/**
......
......@@ -5,8 +5,6 @@
* Schema API handling functions.
*/
use Drupal\Core\Database\Database;
/**
* @addtogroup schemaapi
* @{
......
......@@ -14,7 +14,6 @@
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;
......
......@@ -9,7 +9,6 @@
*/
use Drupal\Component\Graph\Graph;
use Drupal\Component\Utility\Html;
use Drupal\Core\Utility\Error;
/**
......
......@@ -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;
......
......@@ -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.
*/
......
......@@ -7,8 +7,6 @@
namespace Drupal\Component\Gettext;
use Drupal\Component\Gettext\PoHeader;
/**
* Methods required for both reader and writer implementations.
*
......
......@@ -7,8 +7,6 @@
namespace Drupal\Component\Gettext;
use Drupal\Component\Gettext\PoMetadataInterface;
/**
* Shared interface definition for all Gettext PO Readers.
*/
......
......@@ -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;
/**
......
......@@ -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.
*/
......
......@@ -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.
*/
......
......@@ -6,7 +6,6 @@
namespace Drupal\Component\Plugin\Exception;
use Drupal\Component\Plugin\Exception\ExceptionInterface;
use \BadMethodCallException;
/**
......
......@@ -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;
......
......@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
use Drupal\Core\Ajax\CommandInterface;
/**
* An AJAX command for adding css to the page via ajax.
*
......
......@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
use Drupal\Core\Ajax\InsertCommand;
/**
* An AJAX command for calling the jQuery after() method.
*
......
......@@ -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.
......
......@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
use Drupal\Core\Ajax\CommandInterface;
/**
* AJAX command for a javascript alert box.
*
......
......@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
use Drupal\Core\Ajax\InsertCommand;
/**
* An AJAX command for calling the jQuery append() method.
*
......
......@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
use Drupal\Core\Ajax\InsertCommand;
/**
* An AJAX command for calling the jQuery before() method.
*
......
......@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
use Drupal\Core\Ajax\CommandInterface;
/**
* An AJAX command for marking HTML elements as changed.
*
......
......@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
use Drupal\Core\Ajax\CloseDialogCommand;
/**
* Defines an AJAX command that closes the currently visible modal dialog.
*
......
......@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
use Drupal\Core\Ajax\CommandInterface;
/**
* An AJAX command for calling the jQuery css() method.
*
......
......@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
use Drupal\Core\Ajax\CommandInterface;
/**
* An AJAX command for implementing jQuery's data() method.
*
......
......@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
use Drupal\Core\Ajax\InsertCommand;
/**
* AJAX command for calling the jQuery html() method.
*
......
......@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
use Drupal\Core\Ajax\CommandInterface;
/**
* Generic AJAX command for inserting content.
*
......
......@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
use Drupal\Core\Ajax\CommandInterface;
/**
* AJAX command for invoking an arbitrary jQuery method.
*
......
......@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
use Drupal\Core\Ajax\CommandInterface;
/**
* Defines an AJAX command to open certain content in a dialog.
*
......
......@@ -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.
*
......
......@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
use Drupal\Core\Ajax\InsertCommand;
/**
* AJAX command for calling the jQuery insert() method.
*
......
......@@ -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.
*
......
......@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
use Drupal\Core\Ajax\CommandInterface;
/**
* AJAX command for calling the jQuery remove() method.
*
......
......@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
use Drupal\Core\Ajax\InsertCommand;
/**
* AJAX command for calling the jQuery replace() method.
*
......
......@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
use Drupal\Core\Ajax\CommandInterface;
/**
* AJAX command for resetting the striping on a table.
*
......
......@@ -7,8 +7,6 @@
namespace Drupal\Core\Ajax;
use Drupal\Core\Ajax\SetDialogOptionCommand;
/**
* Defines an AJAX command that sets jQuery UI dialog properties.
*
......