From 151381a0d32e31c01c19a5e1d297229ab45132eb Mon Sep 17 00:00:00 2001 From: Claus Due Date: Sat, 12 Aug 2023 16:44:24 +0200 Subject: [PATCH] [TASK] Remove unused class imports --- Classes/Form/AbstractFormComponent.php | 1 - Classes/Integration/PreviewRenderer.php | 1 - Classes/Service/FluxService.php | 2 -- Tests/Fixtures/Classes/DummyFluxService.php | 4 ---- Tests/Unit/Form/Field/SelectTest.php | 1 - Tests/Unit/Integration/PreviewRendererTest.php | 1 - Tests/Unit/Provider/ProviderResolverTest.php | 1 - Tests/Unit/Service/FluxServiceTest.php | 4 ---- Tests/Unit/Service/TypoScriptServiceTest.php | 2 -- 9 files changed, 17 deletions(-) diff --git a/Classes/Form/AbstractFormComponent.php b/Classes/Form/AbstractFormComponent.php index 57a718010..306eb146a 100644 --- a/Classes/Form/AbstractFormComponent.php +++ b/Classes/Form/AbstractFormComponent.php @@ -17,7 +17,6 @@ use FluidTYPO3\Flux\Form\Container\SectionObject; use FluidTYPO3\Flux\Form\Container\Sheet; use FluidTYPO3\Flux\Hooks\HookHandler; -use FluidTYPO3\Flux\Service\FluxService; use FluidTYPO3\Flux\Service\TypoScriptService; use FluidTYPO3\Flux\Utility\ExtensionNamingUtility; use FluidTYPO3\Flux\Utility\RecursiveArrayUtility; diff --git a/Classes/Integration/PreviewRenderer.php b/Classes/Integration/PreviewRenderer.php index c68113638..e9cfe31be 100644 --- a/Classes/Integration/PreviewRenderer.php +++ b/Classes/Integration/PreviewRenderer.php @@ -11,7 +11,6 @@ use FluidTYPO3\Flux\Provider\ProviderInterface; use FluidTYPO3\Flux\Service\FluxService; use TYPO3\CMS\Core\Page\PageRenderer; -use TYPO3\CMS\Core\Utility\GeneralUtility; class PreviewRenderer { diff --git a/Classes/Service/FluxService.php b/Classes/Service/FluxService.php index 0ca88781d..278c77456 100644 --- a/Classes/Service/FluxService.php +++ b/Classes/Service/FluxService.php @@ -28,8 +28,6 @@ use TYPO3\CMS\Core\Service\FlexFormService; use TYPO3\CMS\Core\SingletonInterface; use TYPO3\CMS\Core\Utility\GeneralUtility; -use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface; -use TYPO3\CMS\Extbase\Reflection\ObjectAccess; use TYPO3\CMS\Fluid\View\TemplatePaths; /** diff --git a/Tests/Fixtures/Classes/DummyFluxService.php b/Tests/Fixtures/Classes/DummyFluxService.php index 9d38b0d51..2bc964c08 100644 --- a/Tests/Fixtures/Classes/DummyFluxService.php +++ b/Tests/Fixtures/Classes/DummyFluxService.php @@ -3,16 +3,12 @@ use FluidTYPO3\Flux\Form\Transformation\FormDataTransformer; use FluidTYPO3\Flux\Provider\ProviderResolver; -use FluidTYPO3\Flux\Service\CacheService; use FluidTYPO3\Flux\Service\FluxService; -use FluidTYPO3\Flux\Service\RecordService; -use FluidTYPO3\Flux\Service\WorkspacesAwareRecordService; use PHPUnit\Framework\MockObject\Generator; use Psr\Log\LoggerInterface; use TYPO3\CMS\Core\Http\ServerRequest; use TYPO3\CMS\Core\Resource\ResourceFactory; use TYPO3\CMS\Core\Service\FlexFormService; -use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface; class DummyFluxService extends FluxService { diff --git a/Tests/Unit/Form/Field/SelectTest.php b/Tests/Unit/Form/Field/SelectTest.php index e367d9211..e6c6b340c 100644 --- a/Tests/Unit/Form/Field/SelectTest.php +++ b/Tests/Unit/Form/Field/SelectTest.php @@ -9,7 +9,6 @@ */ use FluidTYPO3\Flux\Form; -use FluidTYPO3\Flux\Service\FluxService; use FluidTYPO3\Flux\Service\TypoScriptService; use FluidTYPO3\Flux\Tests\Unit\Form\Field\AbstractFieldTest; use TYPO3\CMS\Extbase\Domain\Model\FrontendUser; diff --git a/Tests/Unit/Integration/PreviewRendererTest.php b/Tests/Unit/Integration/PreviewRendererTest.php index 49401d098..9ea66265f 100644 --- a/Tests/Unit/Integration/PreviewRendererTest.php +++ b/Tests/Unit/Integration/PreviewRendererTest.php @@ -13,7 +13,6 @@ use FluidTYPO3\Flux\Service\FluxService; use FluidTYPO3\Flux\Tests\Unit\AbstractTestCase; use TYPO3\CMS\Core\Page\PageRenderer; -use TYPO3\CMS\Core\Utility\GeneralUtility; class PreviewRendererTest extends AbstractTestCase { diff --git a/Tests/Unit/Provider/ProviderResolverTest.php b/Tests/Unit/Provider/ProviderResolverTest.php index 9db811984..73acddd9c 100644 --- a/Tests/Unit/Provider/ProviderResolverTest.php +++ b/Tests/Unit/Provider/ProviderResolverTest.php @@ -13,7 +13,6 @@ use FluidTYPO3\Flux\Provider\Provider; use FluidTYPO3\Flux\Provider\ProviderInterface; use FluidTYPO3\Flux\Provider\ProviderResolver; -use FluidTYPO3\Flux\Service\FluxService; use FluidTYPO3\Flux\Service\TypoScriptService; use FluidTYPO3\Flux\Tests\Fixtures\Classes\AccessibleCore; use FluidTYPO3\Flux\Tests\Fixtures\Classes\DummyBasicProvider; diff --git a/Tests/Unit/Service/FluxServiceTest.php b/Tests/Unit/Service/FluxServiceTest.php index ce7993587..f2eb55f54 100644 --- a/Tests/Unit/Service/FluxServiceTest.php +++ b/Tests/Unit/Service/FluxServiceTest.php @@ -12,20 +12,16 @@ use FluidTYPO3\Flux\Form; use FluidTYPO3\Flux\Provider\Interfaces\GridProviderInterface; use FluidTYPO3\Flux\Provider\ProviderResolver; -use FluidTYPO3\Flux\Service\CacheService; use FluidTYPO3\Flux\Service\FluxService; use FluidTYPO3\Flux\Tests\Fixtures\Classes\AccessibleCore; -use FluidTYPO3\Flux\Tests\Fixtures\Classes\DummyFluxService; use FluidTYPO3\Flux\Tests\Fixtures\Data\Xml; use FluidTYPO3\Flux\Tests\Unit\AbstractTestCase; use FluidTYPO3\Flux\Utility\ExtensionConfigurationUtility; use PHPUnit\Framework\MockObject\MockObject; -use TYPO3\CMS\Core\Http\ServerRequest; use TYPO3\CMS\Core\Resource\File; use TYPO3\CMS\Core\Resource\ResourceFactory; use TYPO3\CMS\Core\Service\FlexFormService; use TYPO3\CMS\Core\Utility\GeneralUtility; -use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface; use TYPO3\CMS\Fluid\View\TemplatePaths; /** diff --git a/Tests/Unit/Service/TypoScriptServiceTest.php b/Tests/Unit/Service/TypoScriptServiceTest.php index c5368772c..3b529a89c 100644 --- a/Tests/Unit/Service/TypoScriptServiceTest.php +++ b/Tests/Unit/Service/TypoScriptServiceTest.php @@ -9,9 +9,7 @@ */ use FluidTYPO3\Flux\Service\CacheService; -use FluidTYPO3\Flux\Service\FluxService; use FluidTYPO3\Flux\Service\TypoScriptService; -use FluidTYPO3\Flux\Tests\Fixtures\Classes\DummyFluxService; use FluidTYPO3\Flux\Tests\Unit\AbstractTestCase; use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;