mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-26 05:14:05 +00:00
NetworkInterface: remove unused function
This commit is contained in:
parent
161d5bd6b8
commit
a9c76c2424
@ -38,13 +38,6 @@ interface NetworkInterface{
|
|||||||
*/
|
*/
|
||||||
public function start() : void;
|
public function start() : void;
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the number of connections on this interface.
|
|
||||||
*
|
|
||||||
* @return int
|
|
||||||
*/
|
|
||||||
public function getConnectionCount() : int;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sends a packet to the interface, returns an unique identifier for the packet if $needACK is true
|
* Sends a packet to the interface, returns an unique identifier for the packet if $needACK is true
|
||||||
*
|
*
|
||||||
|
@ -40,7 +40,6 @@ use raklib\server\ServerInstance;
|
|||||||
use raklib\utils\InternetAddress;
|
use raklib\utils\InternetAddress;
|
||||||
use function addcslashes;
|
use function addcslashes;
|
||||||
use function bin2hex;
|
use function bin2hex;
|
||||||
use function count;
|
|
||||||
use function implode;
|
use function implode;
|
||||||
use function random_bytes;
|
use function random_bytes;
|
||||||
use function rtrim;
|
use function rtrim;
|
||||||
@ -104,10 +103,6 @@ class RakLibInterface implements ServerInstance, AdvancedNetworkInterface{
|
|||||||
$this->server->getLogger()->debug("RakLib booted successfully");
|
$this->server->getLogger()->debug("RakLib booted successfully");
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getConnectionCount() : int{
|
|
||||||
return count($this->sessions);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setNetwork(Network $network) : void{
|
public function setNetwork(Network $network) : void{
|
||||||
$this->network = $network;
|
$this->network = $network;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user