From 3125f3e1d368a424ea6931aea352364d8e819a5c Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Mon, 21 Apr 2025 15:24:07 +0200 Subject: [PATCH] [ticket/17493] Remove unused methods and use statements PHPBB-17493 --- .../migration/data/v310/notification_options_reconvert.php | 2 -- phpBB/phpbb/messenger/method/base.php | 5 ----- phpBB/phpbb/notification/method/email.php | 3 +-- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/phpBB/phpbb/db/migration/data/v310/notification_options_reconvert.php b/phpBB/phpbb/db/migration/data/v310/notification_options_reconvert.php index f2879f4d71..c0b02bc496 100644 --- a/phpBB/phpbb/db/migration/data/v310/notification_options_reconvert.php +++ b/phpBB/phpbb/db/migration/data/v310/notification_options_reconvert.php @@ -13,8 +13,6 @@ namespace phpbb\db\migration\data\v310; -use phpbb\messenger\method\messenger_interface; - class notification_options_reconvert extends \phpbb\db\migration\migration { protected const NOTIFY_EMAIL = 0; diff --git a/phpBB/phpbb/messenger/method/base.php b/phpBB/phpbb/messenger/method/base.php index f3db4155ca..17213c6b3d 100644 --- a/phpBB/phpbb/messenger/method/base.php +++ b/phpBB/phpbb/messenger/method/base.php @@ -141,11 +141,6 @@ abstract class base implements messenger_interface $this->set_use_queue(); } - /** - * {@inheritdoc} - */ - abstract public function get_id(): int; - /** * {@inheritdoc} */ diff --git a/phpBB/phpbb/notification/method/email.php b/phpBB/phpbb/notification/method/email.php index 8ef86f4599..07ce0b4f06 100644 --- a/phpBB/phpbb/notification/method/email.php +++ b/phpBB/phpbb/notification/method/email.php @@ -19,14 +19,13 @@ use phpbb\user_loader; use phpbb\config\config; use phpbb\db\driver\driver_interface; use phpbb\di\service_collection; -use phpbb\messenger\method\messenger_interface; /** * Email notification method class * This class handles sending emails for notifications */ -class email extends \phpbb\notification\method\messenger_base +class email extends messenger_base { /** @var user */ protected $user;