Skip to content

Commit

Permalink
Remove redundant code
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Friedman <[email protected]>
  • Loading branch information
iMattPro committed May 28, 2024
1 parent 6610224 commit c4b60d1
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions event/listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
];
}

Expand Down Expand Up @@ -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'));
}
}
}

0 comments on commit c4b60d1

Please sign in to comment.