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

@ -74,7 +74,7 @@ class CustomVotesPlugin implements CommandListener, CallbackListener, ManialinkP
const CB_CUSTOM_VOTE_FINISHED = 'CustomVotesPlugin.CustomVoteFinished';
/**
* Private properties
* Private Properties
*/
/** @var maniaControl $maniaControl */
private $maniaControl = null;
@ -191,13 +191,7 @@ class CustomVotesPlugin implements CommandListener, CallbackListener, ManialinkP
$this->maniaControl->client->setCallVoteRatiosEx(false, $ratioArray);
$this->destroyVote();
$emptyManialink = new ManiaLink(self::MLID_ICON);
$this->maniaControl->manialinkManager->sendManialink($emptyManialink);
$this->maniaControl->commandManager->unregisterCommandListener($this);
$this->maniaControl->callbackManager->unregisterCallbackListener($this);
$this->maniaControl->manialinkManager->unregisterManialinkPageAnswerListener($this);
$this->maniaControl->timerManager->unregisterTimerListenings($this);
unset($this->maniaControl);
$this->maniaControl->manialinkManager->hideManialink(self::MLID_ICON);
}
/**