From 8ab67084a0c37580ac9c3e229be9e953c769fd7e Mon Sep 17 00:00:00 2001 From: belliash Date: Wed, 15 Aug 2018 16:31:28 +0200 Subject: [PATCH] It is as easy to instantiate the class as to remove this useless functions. --- engine/vm.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/engine/vm.c b/engine/vm.c index 209aa88..559e8ab 100644 --- a/engine/vm.c +++ b/engine/vm.c @@ -976,12 +976,6 @@ static sxi32 VmEvalChunk(ph7_vm *pVm, ph7_context *pCtx, SyString *pChunk, int i " public function __toString(){ return (string)$this->value; }"\ " function __construct($v){ $this->value = $v; }"\ "}"\ - "function dir(string $path){"\ - " return new Directory($path);"\ - "}"\ - "function Dir(string $path){"\ - " return new Directory($path);"\ - "}"\ "function scandir(string $directory,int $sort_order = SCANDIR_SORT_ASCENDING)"\ "{"\ " if( func_num_args() < 1 ){ return FALSE; }"\