[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

@ -27,15 +27,6 @@ function dwpost_install()
Hook::register('connector_settings_post', 'addon/dwpost/dwpost.php', 'dwpost_settings_post');
}
function dwpost_uninstall()
{
Hook::unregister('post_local', 'addon/dwpost/dwpost.php', 'dwpost_post_local');
Hook::unregister('notifier_normal', 'addon/dwpost/dwpost.php', 'dwpost_send');
Hook::unregister('jot_networks', 'addon/dwpost/dwpost.php', 'dwpost_jot_nets');
Hook::unregister('connector_settings', 'addon/dwpost/dwpost.php', 'dwpost_settings');
Hook::unregister('connector_settings_post', 'addon/dwpost/dwpost.php', 'dwpost_settings_post');
}
function dwpost_jot_nets(App $a, array &$jotnets_fields)
{
if (!local_user()) {