mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-25 04:44:03 +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;
|
||||
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
|
@ -40,7 +40,6 @@ use raklib\server\ServerInstance;
|
||||
use raklib\utils\InternetAddress;
|
||||
use function addcslashes;
|
||||
use function bin2hex;
|
||||
use function count;
|
||||
use function implode;
|
||||
use function random_bytes;
|
||||
use function rtrim;
|
||||
@ -104,10 +103,6 @@ class RakLibInterface implements ServerInstance, AdvancedNetworkInterface{
|
||||
$this->server->getLogger()->debug("RakLib booted successfully");
|
||||
}
|
||||
|
||||
public function getConnectionCount() : int{
|
||||
return count($this->sessions);
|
||||
}
|
||||
|
||||
public function setNetwork(Network $network) : void{
|
||||
$this->network = $network;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user