mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
scheduler: removing task IDs
These no longer serve any purpose that can't be replaced with a structure like Ds\Set, SplObjectStorage, or just using spl_object_id().
This commit is contained in:
@ -37,14 +37,6 @@ abstract class Task{
|
||||
return $this->taskHandler;
|
||||
}
|
||||
|
||||
final public function getTaskId() : int{
|
||||
if($this->taskHandler !== null){
|
||||
return $this->taskHandler->getTaskId();
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
public function getName() : string{
|
||||
return Utils::getNiceClassName($this);
|
||||
}
|
||||
|
Reference in New Issue
Block a user