Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
8b65164c
Commit
8b65164c
authored
Oct 08, 2015
by
Nathaniel Catchpole
Browse files
Issue
#2533800
by alexpott: Remove all unused use statements from core
parent
e3908d21
Changes
580
Hide whitespace changes
Inline
Side-by-side
core/includes/batch.inc
View file @
8b65164c
...
...
@@ -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
;
...
...
core/includes/bootstrap.inc
View file @
8b65164c
...
...
@@ -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.
...
...
core/includes/common.inc
View file @
8b65164c
...
...
@@ -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
...
...
core/includes/entity.inc
View file @
8b65164c
...
...
@@ -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
;
/**
...
...
core/includes/file.inc
View file @
8b65164c
...
...
@@ -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
;
/**
...
...
core/includes/form.inc
View file @
8b65164c
...
...
@@ -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
;
...
...
core/includes/install.core.inc
View file @
8b65164c
<?php
use
Drupal\Component\Utility\SafeMarkup
;
use
Drupal\Component\Utility\UrlHelper
;
use
Drupal\Core\DrupalKernel
;
use
Drupal\Core\Config\BootstrapConfigStorageFactory
;
...
...
core/includes/module.inc
View file @
8b65164c
...
...
@@ -5,7 +5,6 @@
* API for loading and interacting with Drupal modules.
*/
use
Drupal\Core\Cache\Cache
;
use
Drupal\Core\Extension\ExtensionDiscovery
;
/**
...
...
core/includes/pager.inc
View file @
8b65164c
...
...
@@ -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
;
/**
...
...
core/includes/schema.inc
View file @
8b65164c
...
...
@@ -5,8 +5,6 @@
* Schema API handling functions.
*/
use
Drupal\Core\Database\Database
;
/**
* @addtogroup schemaapi
* @{
...
...
core/includes/theme.inc
View file @
8b65164c
...
...
@@ -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
;
...
...
core/includes/update.inc
View file @
8b65164c
...
...
@@ -9,7 +9,6 @@
*/
use
Drupal\Component\Graph\Graph
;
use
Drupal\Component\Utility\Html
;
use
Drupal\Core\Utility\Error
;
/**
...
...
core/includes/utility.inc
View file @
8b65164c
...
...
@@ -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
;
...
...
core/lib/Drupal/Component/Gettext/PoMemoryWriter.php
View file @
8b65164c
...
...
@@ -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.
*/
...
...
core/lib/Drupal/Component/Gettext/PoMetadataInterface.php
View file @
8b65164c
...
...
@@ -7,8 +7,6 @@
namespace
Drupal\Component\Gettext
;
use
Drupal\Component\Gettext\PoHeader
;
/**
* Methods required for both reader and writer implementations.
*
...
...
core/lib/Drupal/Component/Gettext/PoReaderInterface.php
View file @
8b65164c
...
...
@@ -7,8 +7,6 @@
namespace
Drupal\Component\Gettext
;
use
Drupal\Component\Gettext\PoMetadataInterface
;
/**
* Shared interface definition for all Gettext PO Readers.
*/
...
...
core/lib/Drupal/Component/Gettext/PoStreamReader.php
View file @
8b65164c
...
...
@@ -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
;
/**
...
...
core/lib/Drupal/Component/Gettext/PoStreamWriter.php
View file @
8b65164c
...
...
@@ -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.
*/
...
...
core/lib/Drupal/Component/Gettext/PoWriterInterface.php
View file @
8b65164c
...
...
@@ -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.
*/
...
...
core/lib/Drupal/Component/Plugin/Exception/InvalidDecoratedMethod.php
View file @
8b65164c
...
...
@@ -6,7 +6,6 @@
namespace
Drupal\Component\Plugin\Exception
;
use
Drupal\Component\Plugin\Exception\ExceptionInterface
;
use
\
BadMethodCallException
;
/**
...
...
Prev
1
2
3
4
5
…
29
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment