diff --git a/src/pocketmine/event/server/NetworkInterfaceCrashEvent.php b/src/pocketmine/event/server/NetworkInterfaceCrashEvent.php deleted file mode 100644 index ecbd9400e..000000000 --- a/src/pocketmine/event/server/NetworkInterfaceCrashEvent.php +++ /dev/null @@ -1,49 +0,0 @@ -exception = $throwable; - } - - /** - * @return \Throwable - */ - public function getCrashInformation() : \Throwable{ - return $this->exception; - } -} diff --git a/src/pocketmine/network/NetworkInterface.php b/src/pocketmine/network/NetworkInterface.php index c13b86636..da64d6f57 100644 --- a/src/pocketmine/network/NetworkInterface.php +++ b/src/pocketmine/network/NetworkInterface.php @@ -69,11 +69,4 @@ interface NetworkInterface{ * Gracefully shuts down the network interface. */ public function shutdown() : void; - - /** - * @deprecated - * Shuts down the network interface in an emergency situation, such as due to a crash. - */ - public function emergencyShutdown() : void; - } diff --git a/src/pocketmine/network/mcpe/RakLibInterface.php b/src/pocketmine/network/mcpe/RakLibInterface.php index b1ff36636..1fd51b72e 100644 --- a/src/pocketmine/network/mcpe/RakLibInterface.php +++ b/src/pocketmine/network/mcpe/RakLibInterface.php @@ -121,11 +121,6 @@ class RakLibInterface implements ServerInstance, AdvancedNetworkInterface{ $this->interface->shutdown(); } - public function emergencyShutdown() : void{ - $this->server->getTickSleeper()->removeNotifier($this->sleeper); - $this->interface->emergencyShutdown(); - } - public function openSession(string $identifier, string $address, int $port, int $clientID) : void{ $session = new NetworkSession($this->server, $this, $address, $port); $this->sessions[$identifier] = $session;