From c26fd79e289eb7f587ef71a6caa09ed82eb3222f Mon Sep 17 00:00:00 2001 From: Anton Vasiliev <1695147@gmail.com> Date: Mon, 28 Aug 2023 21:54:30 +0000 Subject: [PATCH] #2407 - Remove `MethodCallWarmUp` class and it's calss --- Library/ClassMethod.php | 5 ----- Library/CompilationContext.php | 7 ------- Library/MethodCallWarmUp.php | 38 ---------------------------------- 3 files changed, 50 deletions(-) delete mode 100644 Library/MethodCallWarmUp.php diff --git a/Library/ClassMethod.php b/Library/ClassMethod.php index 6071068c4c..1ee25f0a40 100644 --- a/Library/ClassMethod.php +++ b/Library/ClassMethod.php @@ -1593,11 +1593,6 @@ public function compile(CompilationContext $compilationContext): void */ $compilationContext->currentMethod = $this; - /** - * Initialize the method warm-up to null - */ - $compilationContext->methodWarmUp = null; - /** * Assign pre-made compilation passes. */ diff --git a/Library/CompilationContext.php b/Library/CompilationContext.php index db3b7d1622..915e0044a0 100644 --- a/Library/CompilationContext.php +++ b/Library/CompilationContext.php @@ -84,13 +84,6 @@ class CompilationContext */ public ?ClassMethod $currentMethod = null; - /** - * Methods warm-up. - * - * @var MethodCallWarmUp|null - */ - public ?MethodCallWarmUp $methodWarmUp = null; - /** * Represents the c-headers added to the file. * diff --git a/Library/MethodCallWarmUp.php b/Library/MethodCallWarmUp.php deleted file mode 100644 index 46d4d8223c..0000000000 --- a/Library/MethodCallWarmUp.php +++ /dev/null @@ -1,38 +0,0 @@ - - * - * For the full copyright and license information, please view - * the LICENSE file that was distributed with this source code. - */ - -namespace Zephir; - -/** - * MethodCallWarmUp. - * - * List of methods that require warm up - */ -class MethodCallWarmUp -{ - private $warmUps = []; - - /** - * @param ClassDefinition $classDefinition - * @param ClassMethod $method - */ - public function add(ClassDefinition $classDefinition, ClassMethod $method) - { - $this->warmUps[] = [ - $classDefinition, - $method, - ]; - } - - public function get() - { - } -}