From f71c8cd859a53e96c7e0549512c80c9443fd9a68 Mon Sep 17 00:00:00 2001 From: Matthias Adrowski <matthias.adrowski@sgalinski.de> Date: Mon, 10 Jan 2022 15:57:25 +0100 Subject: [PATCH] [TASK] Remove commented Code --- Classes/Controller/SingleViewController.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Classes/Controller/SingleViewController.php b/Classes/Controller/SingleViewController.php index 3890778..7d82e25 100644 --- a/Classes/Controller/SingleViewController.php +++ b/Classes/Controller/SingleViewController.php @@ -79,19 +79,6 @@ class SingleViewController extends AbstractController { return; } -// $similarNewsMetaData = []; -// $similarNews = $this->newsRepository->findRandomNews(3, $news); -// foreach ($similarNews as $similarNewsEntry) { -// /** @var News $similarNewsEntry */ -// /** @var Category $category */ -// $category = $this->categoryRepository->findByUid($similarNewsEntry->getPid()); -// if (!$category) { -// continue; -// } -// -// $similarNewsMetaData[] = $this->getMetaDataForNews($similarNewsEntry, $category); -// } - $newsMetaData = $this->getMetaDataForNews($news, $newsCategory); if (!version_compare(ExtensionManagementUtility::getExtensionVersion('sg_seo'), '5.0.0', '>=')) { if ($newsMetaData['image']) { -- GitLab