Network: burn some deprecated stuff

This commit is contained in:
Dylan K. Taylor 2019-01-01 20:53:33 +00:00
parent f81bbd60e8
commit 171be946c6
3 changed files with 0 additions and 61 deletions

View File

@ -1,49 +0,0 @@
<?php
/*
*
* ____ _ _ __ __ _ __ __ ____
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* @author PocketMine Team
* @link http://www.pocketmine.net/
*
*
*/
declare(strict_types=1);
namespace pocketmine\event\server;
use pocketmine\network\NetworkInterface;
/**
* Never called. Should never have come into this world. Nothing to see here.
* @deprecated
*/
class NetworkInterfaceCrashEvent extends NetworkInterfaceEvent{
/**
* @var \Throwable
*/
private $exception;
public function __construct(NetworkInterface $interface, \Throwable $throwable){
parent::__construct($interface);
$this->exception = $throwable;
}
/**
* @return \Throwable
*/
public function getCrashInformation() : \Throwable{
return $this->exception;
}
}

View File

@ -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;
}

View File

@ -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;