mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 20:07:09 +00:00
Remove now-unused internal function
This commit is contained in:
parent
7ee4fd55d3
commit
785df3789d
@ -123,9 +123,6 @@ class Server{
|
||||
/** @var Server */
|
||||
private static $instance = null;
|
||||
|
||||
/** @var \Threaded */
|
||||
private static $sleeper = null;
|
||||
|
||||
/** @var SleeperHandler */
|
||||
private $tickSleeper;
|
||||
|
||||
@ -1402,12 +1399,6 @@ class Server{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
public static function microSleep(int $microseconds){
|
||||
Server::$sleeper->synchronized(function(int $ms){
|
||||
Server::$sleeper->wait($ms);
|
||||
}, $microseconds);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \ClassLoader $autoloader
|
||||
* @param \AttachableThreadedLogger $logger
|
||||
@ -1419,7 +1410,7 @@ class Server{
|
||||
throw new \InvalidStateException("Only one server instance can exist at once");
|
||||
}
|
||||
self::$instance = $this;
|
||||
self::$sleeper = new \Threaded;
|
||||
|
||||
$this->tickSleeper = new SleeperHandler();
|
||||
$this->autoloader = $autoloader;
|
||||
$this->logger = $logger;
|
||||
|
Loading…
x
Reference in New Issue
Block a user