From c4b60d1836cd1246bdc501a77ebf75f0ebe5b6d4 Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Tue, 28 May 2024 06:42:03 -0700 Subject: [PATCH] Remove redundant code Signed-off-by: Matt Friedman --- event/listener.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/event/listener.php b/event/listener.php index ddbceb9..48bb4a3 100644 --- a/event/listener.php +++ b/event/listener.php @@ -30,7 +30,7 @@ public static function getSubscribedEvents() return [ 'core.ucp_display_module_before' => 'load_language', 'core.acp_main_notice' => 'compatibility_notice', - 'core.page_header_after' => [['load_template_data'], ['service_worker_url']], + 'core.page_header_after' => 'load_template_data', ]; } @@ -99,15 +99,4 @@ public function compatibility_notice() { $this->template->assign_var('S_WPN_COMPATIBILITY_NOTICE', phpbb_version_compare(PHPBB_VERSION, '4.0.0-dev', '>=')); } - - /** - * Generate service worker URL globally for update - */ - public function service_worker_url() - { - if (!$this->template->retrieve_var('U_WEBPUSH_WORKER_URL')) - { - $this->template->assign_var('U_WEBPUSH_WORKER_URL', $this->controller_helper->route('phpbb_webpushnotifications_ucp_push_worker_controller')); - } - } }