From ee2af2661cfcf15846b3bc75a7bcb40257866376 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Thu, 24 Oct 2013 03:12:25 +0400 Subject: [PATCH] Removed unneeded use statements --- framework/yii/BaseYii.php | 1 - framework/yii/base/Theme.php | 1 - framework/yii/bootstrap/Widget.php | 1 - framework/yii/gii/generators/crud/Generator.php | 1 - framework/yii/gii/views/default/view.php | 1 - framework/yii/gii/views/default/view/files.php | 1 - framework/yii/gii/views/default/view/results.php | 4 ---- framework/yii/grid/ActionColumn.php | 2 -- framework/yii/grid/GridView.php | 2 -- framework/yii/i18n/I18N.php | 1 - framework/yii/web/YiiAsset.php | 3 --- framework/yii/widgets/ActiveField.php | 1 - tests/unit/data/ar/ActiveRecord.php | 2 -- tests/unit/framework/caching/CacheTestCase.php | 1 - tests/unit/framework/caching/RedisCacheTest.php | 1 - tests/unit/framework/caching/ZendDataCacheTest.php | 1 - tests/unit/framework/db/ActiveRecordTest.php | 1 - tests/unit/framework/db/CommandTest.php | 3 --- tests/unit/framework/db/QueryTest.php | 3 --- tests/unit/framework/db/cubrid/CubridQueryBuilderTest.php | 1 - tests/unit/framework/i18n/GettextMessageSourceTest.php | 1 - tests/unit/framework/i18n/I18NTest.php | 1 - tests/unit/framework/validators/UniqueValidatorTest.php | 1 - 23 files changed, 35 deletions(-) diff --git a/framework/yii/BaseYii.php b/framework/yii/BaseYii.php index 21dc81c..5d546bd 100644 --- a/framework/yii/BaseYii.php +++ b/framework/yii/BaseYii.php @@ -6,7 +6,6 @@ */ namespace yii; -use yii\base\Exception; use yii\base\InvalidConfigException; use yii\base\InvalidParamException; use yii\base\UnknownClassException; diff --git a/framework/yii/base/Theme.php b/framework/yii/base/Theme.php index d21d4bf..ff6780c 100644 --- a/framework/yii/base/Theme.php +++ b/framework/yii/base/Theme.php @@ -8,7 +8,6 @@ namespace yii\base; use Yii; -use yii\base\InvalidConfigException; use yii\helpers\FileHelper; /** diff --git a/framework/yii/bootstrap/Widget.php b/framework/yii/bootstrap/Widget.php index db7f415..ff4084d 100644 --- a/framework/yii/bootstrap/Widget.php +++ b/framework/yii/bootstrap/Widget.php @@ -8,7 +8,6 @@ namespace yii\bootstrap; use Yii; -use yii\base\View; use yii\helpers\Json; /** diff --git a/framework/yii/gii/generators/crud/Generator.php b/framework/yii/gii/generators/crud/Generator.php index 671dfbd..cb4bce6 100644 --- a/framework/yii/gii/generators/crud/Generator.php +++ b/framework/yii/gii/generators/crud/Generator.php @@ -8,7 +8,6 @@ namespace yii\gii\generators\crud; use Yii; -use yii\base\Model; use yii\db\ActiveRecord; use yii\db\Schema; use yii\gii\CodeFile; diff --git a/framework/yii/gii/views/default/view.php b/framework/yii/gii/views/default/view.php index 1ef5c77..3123b57 100644 --- a/framework/yii/gii/views/default/view.php +++ b/framework/yii/gii/views/default/view.php @@ -1,6 +1,5 @@ diff --git a/framework/yii/grid/GridView.php b/framework/yii/grid/GridView.php index 4895781..8a3196b 100644 --- a/framework/yii/grid/GridView.php +++ b/framework/yii/grid/GridView.php @@ -11,8 +11,6 @@ use Yii; use Closure; use yii\base\Formatter; use yii\base\InvalidConfigException; -use yii\base\Widget; -use yii\db\ActiveRecord; use yii\helpers\Html; use yii\helpers\Json; use yii\widgets\BaseListView; diff --git a/framework/yii/i18n/I18N.php b/framework/yii/i18n/I18N.php index 57978a0..bf749a2 100644 --- a/framework/yii/i18n/I18N.php +++ b/framework/yii/i18n/I18N.php @@ -10,7 +10,6 @@ namespace yii\i18n; use Yii; use yii\base\Component; use yii\base\InvalidConfigException; -use yii\log\Logger; /** * I18N provides features related with internationalization (I18N) and localization (L10N). diff --git a/framework/yii/web/YiiAsset.php b/framework/yii/web/YiiAsset.php index 29796e7..e49082d 100644 --- a/framework/yii/web/YiiAsset.php +++ b/framework/yii/web/YiiAsset.php @@ -7,9 +7,6 @@ namespace yii\web; -use Yii; -use yii\base\View; - /** * @author Qiang Xue * @since 2.0 diff --git a/framework/yii/widgets/ActiveField.php b/framework/yii/widgets/ActiveField.php index b8924bd..fc30af5 100644 --- a/framework/yii/widgets/ActiveField.php +++ b/framework/yii/widgets/ActiveField.php @@ -8,7 +8,6 @@ namespace yii\widgets; use Yii; use yii\base\Component; -use yii\db\ActiveRecord; use yii\helpers\ArrayHelper; use yii\helpers\Html; use yii\base\Model; diff --git a/tests/unit/data/ar/ActiveRecord.php b/tests/unit/data/ar/ActiveRecord.php index f1194ea..bcb5b48 100644 --- a/tests/unit/data/ar/ActiveRecord.php +++ b/tests/unit/data/ar/ActiveRecord.php @@ -7,8 +7,6 @@ namespace yiiunit\data\ar; -use yii\db\Connection; - /** * ActiveRecord is ... * diff --git a/tests/unit/framework/caching/CacheTestCase.php b/tests/unit/framework/caching/CacheTestCase.php index 9ff6409..2952e87 100644 --- a/tests/unit/framework/caching/CacheTestCase.php +++ b/tests/unit/framework/caching/CacheTestCase.php @@ -13,7 +13,6 @@ function time() namespace yiiunit\framework\caching; -use yii\helpers\StringHelper; use yiiunit\TestCase; use yii\caching\Cache; diff --git a/tests/unit/framework/caching/RedisCacheTest.php b/tests/unit/framework/caching/RedisCacheTest.php index d4e414e..b9df7a9 100644 --- a/tests/unit/framework/caching/RedisCacheTest.php +++ b/tests/unit/framework/caching/RedisCacheTest.php @@ -2,7 +2,6 @@ namespace yiiunit\framework\caching; use yii\caching\MemCache; use yii\caching\RedisCache; -use yiiunit\TestCase; /** * Class for testing redis cache backend diff --git a/tests/unit/framework/caching/ZendDataCacheTest.php b/tests/unit/framework/caching/ZendDataCacheTest.php index 96354cd..2a0af9f 100644 --- a/tests/unit/framework/caching/ZendDataCacheTest.php +++ b/tests/unit/framework/caching/ZendDataCacheTest.php @@ -1,7 +1,6 @@