removed unregister calls from plugin unload methods

This commit is contained in:
Steffen Schröder
2014-05-03 23:09:38 +02:00
parent f9b6437970
commit 3f1339129c
11 changed files with 6 additions and 43 deletions

View File

@ -91,8 +91,6 @@ class ChatlogPlugin implements CallbackListener, Plugin {
* @see \ManiaControl\Plugins\Plugin::unload()
*/
public function unload() {
$this->maniaControl->callbackManager->unregisterCallbackListener($this);
unset($this->maniaControl);
}
/**

View File

@ -62,9 +62,6 @@ class EndurancePlugin implements CallbackListener, Plugin {
* @see \ManiaControl\Plugins\Plugin::unload()
*/
public function unload() {
$this->maniaControl->callbackManager->unregisterCallbackListener($this);
$this->maniaControl->callbackManager->unregisterScriptCallbackListener($this);
unset($this->maniaControl);
}
/**

View File

@ -70,9 +70,6 @@ class ObstaclePlugin implements CallbackListener, CommandListener, Plugin {
* @see \ManiaControl\Plugins\Plugin::unload()
*/
public function unload() {
$this->maniaControl->commandManager->unregisterCommandListener($this);
$this->maniaControl->callbackManager->unregisterScriptCallbackListener($this);
unset($this->maniaControl);
}
/**