NetworkInterface: remove unused function

This commit is contained in:
Dylan K. Taylor 2019-03-26 15:09:43 +00:00
parent 161d5bd6b8
commit a9c76c2424
2 changed files with 0 additions and 12 deletions

View File

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

View File

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