diff --git a/src/pocketmine/network/NetworkInterface.php b/src/pocketmine/network/NetworkInterface.php index 96207498cd..8ef8484637 100644 --- a/src/pocketmine/network/NetworkInterface.php +++ b/src/pocketmine/network/NetworkInterface.php @@ -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 * diff --git a/src/pocketmine/network/mcpe/RakLibInterface.php b/src/pocketmine/network/mcpe/RakLibInterface.php index 97d3f9b3c0..e33b0767b6 100644 --- a/src/pocketmine/network/mcpe/RakLibInterface.php +++ b/src/pocketmine/network/mcpe/RakLibInterface.php @@ -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; }