[various] Remove redundant uninstall functions

- All hooks (current and obsolete) are removed automatically during addon uninstall
This commit is contained in:
Hypolite Petovan 2020-07-27 08:30:41 -04:00
parent aa25a9d762
commit 203672cf27
77 changed files with 229 additions and 887 deletions

View file

@ -15,13 +15,6 @@ function startpage_install() {
Hook::register('addon_settings_post', 'addon/startpage/startpage.php', 'startpage_settings_post');
}
function startpage_uninstall()
{
Hook::unregister('home_init', 'addon/startpage/startpage.php', 'startpage_home_init');
Hook::unregister('addon_settings', 'addon/startpage/startpage.php', 'startpage_settings');
Hook::unregister('addon_settings_post', 'addon/startpage/startpage.php', 'startpage_settings_post');
}
function startpage_home_init($a, $b)
{
if (!local_user()) {