Skip to content

Commit

Permalink
Remove ZEPHIR_CREATE_SYMBOL_TABLE() macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Nov 26, 2023
1 parent 11b5e55 commit ecd769e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/Optimizers/FunctionCall/CreateSymbolTableOptimizer.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Zephir.
*
Expand All @@ -11,6 +9,8 @@
* the LICENSE file that was distributed with this source code.
*/

declare(strict_types=1);

namespace Zephir\Optimizers\FunctionCall;

use Zephir\Call;
Expand Down Expand Up @@ -43,7 +43,7 @@ public function optimize(array $expression, Call $call, CompilationContext $cont
}
}

/*
/**
* Process the expected symbol to be returned
*/
$call->processExpectedReturn($context);
Expand All @@ -59,11 +59,9 @@ public function optimize(array $expression, Call $call, CompilationContext $cont
$symbolVariable->initVariant($context);
}

// TODO: Still needed?
$context->symbolTable->mustGrownStack(true);

$context->codePrinter->output('ZEPHIR_CREATE_SYMBOL_TABLE();');
$context->codePrinter->output('');

return new CompiledExpression('null', null, $expression);
}
}

0 comments on commit ecd769e

Please sign in to comment.