From e652b8e99ce800399d5f0647d957c40c7ad4b610 Mon Sep 17 00:00:00 2001 From: raviks789 <33730024+raviks789@users.noreply.github.com> Date: Fri, 15 Sep 2023 09:55:46 +0200 Subject: [PATCH] Remove unused `ObjectLabelList::class` and `ObjectLabelListItem` --- .../Widget/ItemList/ObjectLabelList.php | 17 ------- .../Widget/ItemList/ObjectLabelListItem.php | 47 ------------------- 2 files changed, 64 deletions(-) delete mode 100644 library/Notifications/Widget/ItemList/ObjectLabelList.php delete mode 100644 library/Notifications/Widget/ItemList/ObjectLabelListItem.php diff --git a/library/Notifications/Widget/ItemList/ObjectLabelList.php b/library/Notifications/Widget/ItemList/ObjectLabelList.php deleted file mode 100644 index e4961417..00000000 --- a/library/Notifications/Widget/ItemList/ObjectLabelList.php +++ /dev/null @@ -1,17 +0,0 @@ - ['minimal', 'incident-object-label-list']]; - - protected function getItemClass(): string - { - return ObjectLabelListItem::class; - } -} diff --git a/library/Notifications/Widget/ItemList/ObjectLabelListItem.php b/library/Notifications/Widget/ItemList/ObjectLabelListItem.php deleted file mode 100644 index cc5f1ebf..00000000 --- a/library/Notifications/Widget/ItemList/ObjectLabelListItem.php +++ /dev/null @@ -1,47 +0,0 @@ -add( - (new SourceIcon(SourceIcon::SIZE_LARGE)) - ->addHtml($this->item->source->getIcon()) - ); - } - - protected function assembleTitle(BaseHtmlElement $title): void - { - $title->add(Html::tag('span', ['class' => 'subject'], $this->item->name)); - } - - protected function assembleHeader(BaseHtmlElement $header): void - { - $header->add($this->createTitle()); - } - - protected function assembleMain(BaseHtmlElement $main): void - { - $main->add($this->createHeader()); - } -}