Unneeded constructors removed

This commit is contained in:
Michael
2023-10-06 21:08:33 +00:00
parent 3f6480c127
commit b5df3cb104
8 changed files with 1 additions and 55 deletions
@@ -22,18 +22,9 @@
namespace Friendica\Content\Conversation\Factory;
use Friendica\Content\Conversation\Collection\Timelines;
use Friendica\Content\Conversation\Repository\Channel as ChannelRepository;
use Friendica\Core\Config\Capability\IManageConfigValues;
use Friendica\Core\L10n;
use Psr\Log\LoggerInterface;
final class UserDefinedChannel extends Timeline
{
public function __construct(ChannelRepository $channel, L10n $l10n, LoggerInterface $logger, IManageConfigValues $config)
{
parent::__construct($channel, $l10n, $logger, $config);
}
/**
* List of available user defined channels
*
@@ -42,6 +33,7 @@ final class UserDefinedChannel extends Timeline
*/
public function getForUser(int $uid): Timelines
{
$tabs = [];
foreach ($this->channelRepository->selectByUid($uid) as $channel) {
$tabs[] = $channel;
}