Commit c837f808 authored by Thomas Löffler's avatar Thomas Löffler

Remove redirect to indexAction in ExtensionController

* Remove unused deleteAction in ExtensionController
parent 8d636ef4
Pipeline #3796 failed with stages
in 4 minutes and 54 seconds
......@@ -361,20 +361,6 @@ class ExtensionController extends \T3o\TerFe2\Controller\AbstractController
);
}
/**
* Deletes an existing extension and all versions
*
* @param \T3o\TerFe2\Domain\Model\Extension $extension The extension to delete
* @return void
*/
public function deleteAction(\T3o\TerFe2\Domain\Model\Extension $extension)
{
$this->extensionRepository->remove($extension);
$this->redirectWithMessage($this->translate('msg.extension_deleted'), 'index');
}
/**
* Check file hash, increment download counter and send file to client browser
*
......@@ -459,9 +445,6 @@ class ExtensionController extends \T3o\TerFe2\Controller\AbstractController
if (!\T3o\TerFe2\Utility\FileUtility::transferFile($fileUrl)) {
$this->redirectWithMessage($this->translate('msg.could_not_transfer_file'), 'show', '', \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR, null, null, array('extension' => $extension));
}
// Fallback
$this->redirect('index');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment