From 4d480fcce07f4807b41d89b2811f553658bc7576 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 28 Apr 2021 18:05:27 +0200 Subject: [PATCH] Cleanup some unused stuff --- application/controllers/CommentController.php | 4 ---- application/controllers/ServiceController.php | 1 - library/Icingadb/Widget/Detail/CommentDetail.php | 4 ---- library/Icingadb/Widget/Detail/DowntimeDetail.php | 6 ------ 4 files changed, 15 deletions(-) diff --git a/application/controllers/CommentController.php b/application/controllers/CommentController.php index d8f6b4ab..3cb89922 100644 --- a/application/controllers/CommentController.php +++ b/application/controllers/CommentController.php @@ -6,9 +6,7 @@ namespace Icinga\Module\Icingadb\Controllers; use Icinga\Exception\NotFoundError; use Icinga\Module\Icingadb\Common\CommandActions; -use Icinga\Module\Icingadb\Common\HostLink; use Icinga\Module\Icingadb\Common\Links; -use Icinga\Module\Icingadb\Common\ServiceLink; use Icinga\Module\Icingadb\Model\Comment; use Icinga\Module\Icingadb\Web\Controller; use Icinga\Module\Icingadb\Widget\Detail\CommentDetail; @@ -17,8 +15,6 @@ use Icinga\Module\Icingadb\Widget\ItemList\CommentList; class CommentController extends Controller { use CommandActions; - use HostLink; - use ServiceLink; /** @var Comment The comment object */ protected $comment; diff --git a/application/controllers/ServiceController.php b/application/controllers/ServiceController.php index 52261c22..3925b351 100644 --- a/application/controllers/ServiceController.php +++ b/application/controllers/ServiceController.php @@ -18,7 +18,6 @@ use Icinga\Module\Icingadb\Widget\ItemList\CommentList; use Icinga\Module\Icingadb\Widget\ItemList\HistoryList; use Icinga\Module\Icingadb\Widget\ServiceList; use Icinga\Module\Icingadb\Widget\ShowMore; -use ipl\Sql\Sql; class ServiceController extends Controller { diff --git a/library/Icingadb/Widget/Detail/CommentDetail.php b/library/Icingadb/Widget/Detail/CommentDetail.php index 009f681f..0987b0df 100644 --- a/library/Icingadb/Widget/Detail/CommentDetail.php +++ b/library/Icingadb/Widget/Detail/CommentDetail.php @@ -5,10 +5,8 @@ namespace Icinga\Module\Icingadb\Widget\Detail; use Icinga\Module\Icingadb\Common\Auth; -use Icinga\Module\Icingadb\Common\HostLink; use Icinga\Module\Icingadb\Common\Links; use Icinga\Module\Icingadb\Common\MarkdownText; -use Icinga\Module\Icingadb\Common\ServiceLink; use Icinga\Module\Icingadb\Forms\Command\Object\DeleteCommentForm; use Icinga\Module\Icingadb\Widget\TimeUntil; use ipl\Html\BaseHtmlElement; @@ -17,8 +15,6 @@ use ipl\Html\Html; class CommentDetail extends BaseHtmlElement { use Auth; - use HostLink; - use ServiceLink; protected $comment; diff --git a/library/Icingadb/Widget/Detail/DowntimeDetail.php b/library/Icingadb/Widget/Detail/DowntimeDetail.php index cd15643c..1589cab5 100644 --- a/library/Icingadb/Widget/Detail/DowntimeDetail.php +++ b/library/Icingadb/Widget/Detail/DowntimeDetail.php @@ -7,24 +7,18 @@ namespace Icinga\Module\Icingadb\Widget\Detail; use Icinga\Date\DateFormatter; use Icinga\Date\DateFormatter as WebDateFormatter; use Icinga\Module\Icingadb\Common\Auth; -use Icinga\Module\Icingadb\Common\HostLink; use Icinga\Module\Icingadb\Common\Links; use Icinga\Module\Icingadb\Common\MarkdownText; -use Icinga\Module\Icingadb\Common\ServiceLink; use Icinga\Module\Icingadb\Forms\Command\Object\DeleteDowntimeForm; use Icinga\Module\Icingadb\Model\Downtime; use Icinga\Module\Icingadb\Widget\HorizontalKeyValue; use ipl\Html\BaseHtmlElement; use ipl\Html\Html; -use ipl\Html\HtmlDocument; -use ipl\Html\HtmlString; use ipl\Web\Widget\Icon; class DowntimeDetail extends BaseHtmlElement { use Auth; - use HostLink; - use ServiceLink; /** @var BaseHtmlElement */ protected $control;