mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
AsyncTask: Remove cleanObject() and calls to it
This is no longer needed. Doing worker GC (via collect()) frees the allocated memory anyway, so this function is now redundant.
This commit is contained in:
@ -291,15 +291,5 @@ abstract class AsyncTask extends Collectable{
|
||||
|
||||
return $server->getScheduler()->peekLocalComplex($this);
|
||||
}
|
||||
|
||||
public function cleanObject(){
|
||||
foreach($this as $p => $v){
|
||||
if(!($v instanceof \Threaded)){
|
||||
$this->{$p} = null;
|
||||
}
|
||||
}
|
||||
|
||||
$this->setGarbage();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user