Skip to content

Commit

Permalink
controllers: Remove incorrect usage of trait CommandActions
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed Sep 18, 2024
1 parent 334aaf8 commit 53e384a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
15 changes: 0 additions & 15 deletions application/controllers/CommentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,14 @@
namespace Icinga\Module\Icingadb\Controllers;

use Icinga\Exception\NotFoundError;
use Icinga\Module\Icingadb\Common\CommandActions;
use Icinga\Module\Icingadb\Common\Links;
use Icinga\Module\Icingadb\Model\Comment;
use Icinga\Module\Icingadb\Web\Controller;
use Icinga\Module\Icingadb\Widget\Detail\CommentDetail;
use Icinga\Module\Icingadb\Widget\ItemList\CommentList;
use ipl\Stdlib\Filter;
use ipl\Web\Url;

class CommentController extends Controller
{
use CommandActions;

/** @var Comment The comment object */
protected $comment;

Expand Down Expand Up @@ -59,14 +54,4 @@ public function indexAction()

$this->setAutorefreshInterval(10);
}

protected function fetchCommandTargets(): array
{
return [$this->comment];
}

protected function getCommandTargetsUrl(): Url
{
return Links::comment($this->comment);
}
}
15 changes: 0 additions & 15 deletions application/controllers/DowntimeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,14 @@
namespace Icinga\Module\Icingadb\Controllers;

use Icinga\Exception\NotFoundError;
use Icinga\Module\Icingadb\Common\CommandActions;
use Icinga\Module\Icingadb\Common\Links;
use Icinga\Module\Icingadb\Model\Downtime;
use Icinga\Module\Icingadb\Web\Controller;
use Icinga\Module\Icingadb\Widget\Detail\DowntimeDetail;
use Icinga\Module\Icingadb\Widget\ItemList\DowntimeList;
use ipl\Stdlib\Filter;
use ipl\Web\Url;

class DowntimeController extends Controller
{
use CommandActions;

/** @var Downtime */
protected $downtime;

Expand Down Expand Up @@ -71,14 +66,4 @@ public function indexAction()

$this->setAutorefreshInterval(10);
}

protected function fetchCommandTargets(): array
{
return [$this->downtime];
}

protected function getCommandTargetsUrl(): Url
{
return Links::downtime($this->downtime);
}
}

0 comments on commit 53e384a

Please sign in to comment.