[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

@ -26,16 +26,6 @@ function libravatar_install()
Logger::log("registered libravatar in avatar_lookup hook");
}
/**
* Removes the addon hook
*/
function libravatar_uninstall()
{
Hook::unregister('load_config', 'addon/libravatar/libravatar.php', 'libravatar_load_config');
Hook::unregister('avatar_lookup', 'addon/libravatar/libravatar.php', 'libravatar_lookup');
Logger::log("unregistered libravatar in avatar_lookup hook");
}
function libravatar_load_config(App $a, ConfigFileLoader $loader)
{
$a->getConfigCache()->load($loader->loadAddonConfig('libravatar'));