From 08f6291350bcebf90a3a96e83fc2f658756d0290 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Sun, 9 Feb 2014 23:45:22 +0000 Subject: [PATCH] Cleaned up further unused imports. --- lib/Doctrine/ORM/AbstractQuery.php | 1 - lib/Doctrine/ORM/Cache.php | 2 -- lib/Doctrine/ORM/Cache/CacheConfiguration.php | 3 --- lib/Doctrine/ORM/Cache/CollectionHydrator.php | 2 -- lib/Doctrine/ORM/Cache/ConcurrentRegion.php | 2 -- lib/Doctrine/ORM/Cache/DefaultCacheFactory.php | 2 -- lib/Doctrine/ORM/Cache/DefaultCollectionHydrator.php | 2 -- lib/Doctrine/ORM/Cache/DefaultEntityHydrator.php | 2 -- lib/Doctrine/ORM/Cache/DefaultQueryCache.php | 3 --- lib/Doctrine/ORM/Cache/EntityHydrator.php | 2 -- lib/Doctrine/ORM/Cache/QueryCacheValidator.php | 2 -- lib/Doctrine/ORM/Cache/Region.php | 2 -- lib/Doctrine/ORM/Cache/TimestampQueryCacheValidator.php | 3 --- lib/Doctrine/ORM/Event/LifecycleEventArgs.php | 1 - lib/Doctrine/ORM/Event/PreUpdateEventArgs.php | 1 - lib/Doctrine/ORM/Mapping/AnsiQuoteStrategy.php | 1 - lib/Doctrine/ORM/Mapping/DefaultQuoteStrategy.php | 1 - lib/Doctrine/ORM/Mapping/QuoteStrategy.php | 1 - lib/Doctrine/ORM/Query/FilterCollection.php | 1 - lib/Doctrine/ORM/Query/QueryExpressionVisitor.php | 2 -- lib/Doctrine/ORM/Query/SqlWalker.php | 1 - lib/Doctrine/ORM/Tools/Export/ClassMetadataExporter.php | 2 -- lib/Doctrine/ORM/Tools/SchemaTool.php | 1 - 23 files changed, 40 deletions(-) diff --git a/lib/Doctrine/ORM/AbstractQuery.php b/lib/Doctrine/ORM/AbstractQuery.php index 5390c96d2..6ee6d1ae9 100644 --- a/lib/Doctrine/ORM/AbstractQuery.php +++ b/lib/Doctrine/ORM/AbstractQuery.php @@ -29,7 +29,6 @@ use Doctrine\DBAL\Cache\QueryCacheProfile; use Doctrine\ORM\Cache; use Doctrine\ORM\Query\QueryException; -use Doctrine\ORM\ORMInvalidArgumentException; /** * Base contract for ORM queries. Base class for Query and NativeQuery. diff --git a/lib/Doctrine/ORM/Cache.php b/lib/Doctrine/ORM/Cache.php index 37cc9a075..fec65f1f3 100644 --- a/lib/Doctrine/ORM/Cache.php +++ b/lib/Doctrine/ORM/Cache.php @@ -20,8 +20,6 @@ namespace Doctrine\ORM; -use Doctrine\ORM\EntityManagerInterface; - /** * Provides an API for querying/managing the second level cache regions. * diff --git a/lib/Doctrine/ORM/Cache/CacheConfiguration.php b/lib/Doctrine/ORM/Cache/CacheConfiguration.php index 9d3654a04..4a583c14c 100644 --- a/lib/Doctrine/ORM/Cache/CacheConfiguration.php +++ b/lib/Doctrine/ORM/Cache/CacheConfiguration.php @@ -21,10 +21,7 @@ namespace Doctrine\ORM\Cache; use Doctrine\ORM\ORMException; -use Doctrine\ORM\Cache\CacheFactory; use Doctrine\ORM\Cache\Logging\CacheLogger; -use Doctrine\ORM\Cache\QueryCacheValidator; -use Doctrine\ORM\Cache\TimestampQueryCacheValidator; /** * Configuration container for second-level cache. diff --git a/lib/Doctrine/ORM/Cache/CollectionHydrator.php b/lib/Doctrine/ORM/Cache/CollectionHydrator.php index 05f0d35a1..04cdde162 100644 --- a/lib/Doctrine/ORM/Cache/CollectionHydrator.php +++ b/lib/Doctrine/ORM/Cache/CollectionHydrator.php @@ -22,8 +22,6 @@ namespace Doctrine\ORM\Cache; use Doctrine\ORM\PersistentCollection; use Doctrine\ORM\Mapping\ClassMetadata; -use Doctrine\ORM\Cache\CollectionCacheKey; -use Doctrine\ORM\Cache\CollectionCacheEntry; /** * Hydrator cache entry for collections diff --git a/lib/Doctrine/ORM/Cache/ConcurrentRegion.php b/lib/Doctrine/ORM/Cache/ConcurrentRegion.php index 7bb50086b..12da6d615 100644 --- a/lib/Doctrine/ORM/Cache/ConcurrentRegion.php +++ b/lib/Doctrine/ORM/Cache/ConcurrentRegion.php @@ -20,8 +20,6 @@ namespace Doctrine\ORM\Cache; -use Doctrine\ORM\Cache\Lock; - /** * Defines contract for concurrently managed data region. * It should be able to lock an specific cache entry in an atomic operation. diff --git a/lib/Doctrine/ORM/Cache/DefaultCacheFactory.php b/lib/Doctrine/ORM/Cache/DefaultCacheFactory.php index 118fd30b1..9ae425df3 100644 --- a/lib/Doctrine/ORM/Cache/DefaultCacheFactory.php +++ b/lib/Doctrine/ORM/Cache/DefaultCacheFactory.php @@ -24,8 +24,6 @@ use Doctrine\Common\Cache\CacheProvider; use Doctrine\ORM\Cache; use Doctrine\ORM\Cache\Region; -use Doctrine\ORM\Cache\TimestampRegion; -use Doctrine\ORM\Cache\RegionsConfiguration; use Doctrine\ORM\Mapping\ClassMetadata; use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\Cache\Region\DefaultRegion; diff --git a/lib/Doctrine/ORM/Cache/DefaultCollectionHydrator.php b/lib/Doctrine/ORM/Cache/DefaultCollectionHydrator.php index 53ab2c58f..72409509d 100644 --- a/lib/Doctrine/ORM/Cache/DefaultCollectionHydrator.php +++ b/lib/Doctrine/ORM/Cache/DefaultCollectionHydrator.php @@ -24,8 +24,6 @@ use Doctrine\ORM\Query; use Doctrine\ORM\PersistentCollection; use Doctrine\ORM\Mapping\ClassMetadata; use Doctrine\ORM\EntityManagerInterface; -use Doctrine\ORM\Cache\CollectionCacheKey; -use Doctrine\ORM\Cache\CollectionCacheEntry; /** * Default hydrator cache for collections diff --git a/lib/Doctrine/ORM/Cache/DefaultEntityHydrator.php b/lib/Doctrine/ORM/Cache/DefaultEntityHydrator.php index 8a5cb83e5..6d9ac53b8 100644 --- a/lib/Doctrine/ORM/Cache/DefaultEntityHydrator.php +++ b/lib/Doctrine/ORM/Cache/DefaultEntityHydrator.php @@ -23,10 +23,8 @@ namespace Doctrine\ORM\Cache; use Doctrine\Common\Util\ClassUtils; use Doctrine\ORM\Query; -use Doctrine\ORM\Cache\EntityCacheKey; use Doctrine\ORM\Mapping\ClassMetadata; use Doctrine\ORM\EntityManagerInterface; -use Doctrine\ORM\Cache\EntityCacheEntry; /** * Default hydrator cache for entities diff --git a/lib/Doctrine/ORM/Cache/DefaultQueryCache.php b/lib/Doctrine/ORM/Cache/DefaultQueryCache.php index 479bfbfea..789792103 100644 --- a/lib/Doctrine/ORM/Cache/DefaultQueryCache.php +++ b/lib/Doctrine/ORM/Cache/DefaultQueryCache.php @@ -25,10 +25,7 @@ use Doctrine\ORM\Cache\Persister\CachedPersister; use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\Query\ResultSetMapping; use Doctrine\ORM\Mapping\ClassMetadata; -use Doctrine\ORM\Cache\QueryCacheEntry; -use Doctrine\ORM\Cache\EntityCacheKey; use Doctrine\ORM\PersistentCollection; -use Doctrine\ORM\Cache\CacheException; use Doctrine\Common\Proxy\Proxy; use Doctrine\ORM\Cache; use Doctrine\ORM\Query; diff --git a/lib/Doctrine/ORM/Cache/EntityHydrator.php b/lib/Doctrine/ORM/Cache/EntityHydrator.php index 569561101..05a394da7 100644 --- a/lib/Doctrine/ORM/Cache/EntityHydrator.php +++ b/lib/Doctrine/ORM/Cache/EntityHydrator.php @@ -20,9 +20,7 @@ namespace Doctrine\ORM\Cache; -use Doctrine\ORM\Cache\EntityCacheKey; use Doctrine\ORM\Mapping\ClassMetadata; -use Doctrine\ORM\Cache\EntityCacheEntry; /** * Hydrator cache entry for entities diff --git a/lib/Doctrine/ORM/Cache/QueryCacheValidator.php b/lib/Doctrine/ORM/Cache/QueryCacheValidator.php index dba7b0abe..682a41ec4 100644 --- a/lib/Doctrine/ORM/Cache/QueryCacheValidator.php +++ b/lib/Doctrine/ORM/Cache/QueryCacheValidator.php @@ -20,8 +20,6 @@ namespace Doctrine\ORM\Cache; -use Doctrine\ORM\Cache\QueryCacheEntry; - /** * Cache query validator interface. * diff --git a/lib/Doctrine/ORM/Cache/Region.php b/lib/Doctrine/ORM/Cache/Region.php index 91879f45a..894fd2f9b 100644 --- a/lib/Doctrine/ORM/Cache/Region.php +++ b/lib/Doctrine/ORM/Cache/Region.php @@ -20,8 +20,6 @@ namespace Doctrine\ORM\Cache; -use Doctrine\ORM\Cache\Lock; - /** * Defines a contract for accessing a particular named region. * diff --git a/lib/Doctrine/ORM/Cache/TimestampQueryCacheValidator.php b/lib/Doctrine/ORM/Cache/TimestampQueryCacheValidator.php index c213beefe..4e504e4f8 100644 --- a/lib/Doctrine/ORM/Cache/TimestampQueryCacheValidator.php +++ b/lib/Doctrine/ORM/Cache/TimestampQueryCacheValidator.php @@ -20,9 +20,6 @@ namespace Doctrine\ORM\Cache; -use Doctrine\ORM\Cache\QueryCacheEntry; -use Doctrine\ORM\Cache\QueryCacheKey; - /** * @since 2.5 * @author Fabio B. Silva diff --git a/lib/Doctrine/ORM/Event/LifecycleEventArgs.php b/lib/Doctrine/ORM/Event/LifecycleEventArgs.php index 8977a3573..9a5c8cf06 100644 --- a/lib/Doctrine/ORM/Event/LifecycleEventArgs.php +++ b/lib/Doctrine/ORM/Event/LifecycleEventArgs.php @@ -19,7 +19,6 @@ namespace Doctrine\ORM\Event; -use Doctrine\ORM\EntityManager; use Doctrine\Common\Persistence\Event\LifecycleEventArgs as BaseLifecycleEventArgs; /** diff --git a/lib/Doctrine/ORM/Event/PreUpdateEventArgs.php b/lib/Doctrine/ORM/Event/PreUpdateEventArgs.php index 0cae066af..9624e94da 100644 --- a/lib/Doctrine/ORM/Event/PreUpdateEventArgs.php +++ b/lib/Doctrine/ORM/Event/PreUpdateEventArgs.php @@ -19,7 +19,6 @@ namespace Doctrine\ORM\Event; -use Doctrine\Common\EventArgs; use Doctrine\ORM\EntityManager; /** diff --git a/lib/Doctrine/ORM/Mapping/AnsiQuoteStrategy.php b/lib/Doctrine/ORM/Mapping/AnsiQuoteStrategy.php index 440c3909f..526c5ac51 100644 --- a/lib/Doctrine/ORM/Mapping/AnsiQuoteStrategy.php +++ b/lib/Doctrine/ORM/Mapping/AnsiQuoteStrategy.php @@ -19,7 +19,6 @@ namespace Doctrine\ORM\Mapping; -use Doctrine\ORM\Mapping\ClassMetadata; use Doctrine\DBAL\Platforms\AbstractPlatform; /** diff --git a/lib/Doctrine/ORM/Mapping/DefaultQuoteStrategy.php b/lib/Doctrine/ORM/Mapping/DefaultQuoteStrategy.php index 70359de33..5adfa8b16 100644 --- a/lib/Doctrine/ORM/Mapping/DefaultQuoteStrategy.php +++ b/lib/Doctrine/ORM/Mapping/DefaultQuoteStrategy.php @@ -19,7 +19,6 @@ namespace Doctrine\ORM\Mapping; -use Doctrine\ORM\Mapping\ClassMetadata; use Doctrine\DBAL\Platforms\AbstractPlatform; /** diff --git a/lib/Doctrine/ORM/Mapping/QuoteStrategy.php b/lib/Doctrine/ORM/Mapping/QuoteStrategy.php index 2ad7e7c97..1a21ff1bb 100644 --- a/lib/Doctrine/ORM/Mapping/QuoteStrategy.php +++ b/lib/Doctrine/ORM/Mapping/QuoteStrategy.php @@ -19,7 +19,6 @@ namespace Doctrine\ORM\Mapping; -use Doctrine\ORM\Mapping\ClassMetadata; use Doctrine\DBAL\Platforms\AbstractPlatform; /** diff --git a/lib/Doctrine/ORM/Query/FilterCollection.php b/lib/Doctrine/ORM/Query/FilterCollection.php index 62fb32813..d1d340c65 100644 --- a/lib/Doctrine/ORM/Query/FilterCollection.php +++ b/lib/Doctrine/ORM/Query/FilterCollection.php @@ -19,7 +19,6 @@ namespace Doctrine\ORM\Query; -use Doctrine\ORM\Configuration; use Doctrine\ORM\EntityManager; /** diff --git a/lib/Doctrine/ORM/Query/QueryExpressionVisitor.php b/lib/Doctrine/ORM/Query/QueryExpressionVisitor.php index 984820728..da4577132 100644 --- a/lib/Doctrine/ORM/Query/QueryExpressionVisitor.php +++ b/lib/Doctrine/ORM/Query/QueryExpressionVisitor.php @@ -26,8 +26,6 @@ use Doctrine\Common\Collections\Expr\Comparison; use Doctrine\Common\Collections\Expr\CompositeExpression; use Doctrine\Common\Collections\Expr\Value; -use Doctrine\ORM\Query\Parameter; - /** * Converts Collection expressions to Query expressions. * diff --git a/lib/Doctrine/ORM/Query/SqlWalker.php b/lib/Doctrine/ORM/Query/SqlWalker.php index c54369aca..fe750cff4 100644 --- a/lib/Doctrine/ORM/Query/SqlWalker.php +++ b/lib/Doctrine/ORM/Query/SqlWalker.php @@ -23,7 +23,6 @@ use Doctrine\DBAL\LockMode; use Doctrine\DBAL\Types\Type; use Doctrine\ORM\Mapping\ClassMetadata; use Doctrine\ORM\Query; -use Doctrine\ORM\Query\QueryException; use Doctrine\ORM\OptimisticLockException; use Doctrine\ORM\Mapping\ClassMetadataInfo; diff --git a/lib/Doctrine/ORM/Tools/Export/ClassMetadataExporter.php b/lib/Doctrine/ORM/Tools/Export/ClassMetadataExporter.php index 478ae8473..1ea2a3735 100644 --- a/lib/Doctrine/ORM/Tools/Export/ClassMetadataExporter.php +++ b/lib/Doctrine/ORM/Tools/Export/ClassMetadataExporter.php @@ -19,8 +19,6 @@ namespace Doctrine\ORM\Tools\Export; -use Doctrine\ORM\Tools\Export\ExportException; - /** * Class used for converting your mapping information between the * supported formats: yaml, xml, and php/annotation. diff --git a/lib/Doctrine/ORM/Tools/SchemaTool.php b/lib/Doctrine/ORM/Tools/SchemaTool.php index 4ccbe117b..ad8b84f68 100644 --- a/lib/Doctrine/ORM/Tools/SchemaTool.php +++ b/lib/Doctrine/ORM/Tools/SchemaTool.php @@ -20,7 +20,6 @@ namespace Doctrine\ORM\Tools; use Doctrine\ORM\ORMException; -use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Schema\Comparator; use Doctrine\DBAL\Schema\Schema; use Doctrine\DBAL\Schema\Table;