[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

@ -35,27 +35,6 @@ function planets_install() {
Logger::log("installed planets");
}
function planets_uninstall() {
/**
*
* uninstall unregisters any hooks created with register_hook
* during install. It may also delete configuration settings
* and any other cleanup.
*
*/
Hook::unregister('post_local', 'addon/planets/planets.php', 'planets_post_hook');
Hook::unregister('addon_settings', 'addon/planets/planets.php', 'planets_settings');
Hook::unregister('addon_settings_post', 'addon/planets/planets.php', 'planets_settings_post');
Logger::log("removed planets");
}
function planets_post_hook($a, &$item) {
/**