[TASK] Remove unused ViewHelpers from ext:belog 03/35603/2
authorWouter Wolters <typo3@wouterwolters.nl>
Sat, 20 Dec 2014 16:48:05 +0000 (17:48 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 20 Dec 2014 20:59:24 +0000 (21:59 +0100)
With the replacing of the DateTimePicker two ViewHelpers
became obsolete. Both are removed without substitution.

Resolves: #40189
Releases: master
Change-Id: Ic5b16875ed8213d693f54604d09faec53f98aca8
Reviewed-on: http://review.typo3.org/35603
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/belog/Classes/ViewHelpers/Be/AddJsFileViewHelper.php [deleted file]
typo3/sysext/belog/Classes/ViewHelpers/Be/InlineSettingsArrayViewHelper.php [deleted file]

diff --git a/typo3/sysext/belog/Classes/ViewHelpers/Be/AddJsFileViewHelper.php b/typo3/sysext/belog/Classes/ViewHelpers/Be/AddJsFileViewHelper.php
deleted file mode 100644 (file)
index 957bb96..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-namespace TYPO3\CMS\Belog\ViewHelpers\Be;
-
-/*
- * This file is part of the TYPO3 CMS project.
- *
- * It is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License, either version 2
- * of the License, or any later version.
- *
- * For the full copyright and license information, please read the
- * LICENSE.txt file that was distributed with this source code.
- *
- * The TYPO3 project - inspiring people to share!
- */
-
-/**
- * View helper to add a additional javascript file to the backend header
- *
- * @author Christian Kuhn <lolli@schwarzbu.ch>
- * @internal
- */
-class AddJsFileViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Be\AbstractBackendViewHelper {
-
-       /**
-        * Includes a JavaScript file into the to-be-rendered page
-        *
-        * @param string $file Custom JavaScript file to be loaded. Can be a file path inside the TYPO3 installation
-        * @return void
-        * @see \TYPO3\CMS\Backend\Template\DocumentTemplate
-        * @see \TYPO3\CMS\Core\Page\PageRenderer
-        */
-       public function render($file) {
-               $doc = $this->getDocInstance();
-               $pageRenderer = $doc->getPageRenderer();
-               $pageRenderer->addJsFile($file);
-       }
-
-}
diff --git a/typo3/sysext/belog/Classes/ViewHelpers/Be/InlineSettingsArrayViewHelper.php b/typo3/sysext/belog/Classes/ViewHelpers/Be/InlineSettingsArrayViewHelper.php
deleted file mode 100644 (file)
index 9f47823..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-namespace TYPO3\CMS\Belog\ViewHelpers\Be;
-
-/*
- * This file is part of the TYPO3 CMS project.
- *
- * It is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License, either version 2
- * of the License, or any later version.
- *
- * For the full copyright and license information, please read the
- * LICENSE.txt file that was distributed with this source code.
- *
- * The TYPO3 project - inspiring people to share!
- */
-
-/**
- * View helper to add a additional javascript settings to the backend header
- *
- * @author Christian Kuhn <lolli@schwarzbu.ch>
- * @internal
- */
-class InlineSettingsArrayViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Be\AbstractBackendViewHelper {
-
-       /**
-        * Render additional javascript to page
-        *
-        * @param array $settings Custom JavaScript settings to be added
-        * @param string $namespace Set custom namespace for inline settings array
-        * @return void
-        * @see \TYPO3\CMS\Backend\Template\DocumentTemplate
-        * @see \TYPO3\CMS\Core\Page\PageRenderer
-        */
-       public function render(array $settings, $namespace = '') {
-               $doc = $this->getDocInstance();
-               $pageRenderer = $doc->getPageRenderer();
-               $pageRenderer->addInlineSettingArray($namespace, $settings);
-       }
-
-}