| @@ -35,9 +35,8 @@ | ||
| 35 | 35 | public function boot(): void |
| 36 | 36 | { |
| 37 | 37 | $this->hooks->addAction('init', \Closure::fromCallable([$this, 'onInit'])); |
| 38 | 38 | $this->hooks->onActivation(\Closure::fromCallable([$this, 'onActivation'])); |
| 39 | - $this->hooks->onDeactivation(\Closure::fromCallable([$this, 'onUninstall'])); | |
| 40 | 39 | |
| 41 | 40 | if ($this->hooks->isAdmin()) { |
| 42 | 41 | $this->adminPage->register(); |
| 43 | 42 | AddPluginSettingsLink::register(); |
| @@ -80,9 +79,5 @@ | ||
| 80 | 79 | // Legacy. Update the option introduced in a previous release to use autoloading. |
| 81 | 80 | $this->settings->update(SettingName::CUSTOM_DOMAIN, $this->settings->get(SettingName::CUSTOM_DOMAIN), true); |
| 82 | 81 | } |
| 83 | 82 | |
| 84 | - public function onUninstall(): void | |
| 85 | - { | |
| 86 | - foreach (SettingName::cases() as $key) $this->settings->delete($key); | |
| 87 | - } | |
| 88 | 83 | } |