com php-src: Removed unused array: Zend/zend_vm_gen.php
| From: | Dmitry Stogov | Date: | Tue, 09 Jan 2018 20:17:10 +0000 |
| Subject: | com php-src: Removed unused array: Zend/zend_vm_gen.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-100822@lists.php.net to get a copy of this message | ||
Commit: 83aa742dde45ae5187e132e57abe5e11c7493c2e
Author: Dmitry Stogov <dmitry@zend.com> Tue, 9 Jan 2018 23:17:10 +0300
Parents: d9c706f28d7533f93e91cbba666f51d65b863220
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=83aa742dde45ae5187e132e57abe5e11c7493c2e
Log:
Removed unused array
Changed paths:
M Zend/zend_vm_gen.php
Diff:
diff --git a/Zend/zend_vm_gen.php b/Zend/zend_vm_gen.php
index 33c761b..6a4b095 100644
--- a/Zend/zend_vm_gen.php
+++ b/Zend/zend_vm_gen.php
@@ -170,17 +170,6 @@ $prefix = array(
"TMPVARCV" => "_TMPVARCV",
);
-$typecode = array(
- "ANY" => 0,
- "TMP" => 1,
- "VAR" => 2,
- "CONST" => 0,
- "UNUSED" => 3,
- "CV" => 4,
- "TMPVAR" => 0,
- "TMPVARCV" => 0,
-);
-
$commutative_order = array(
"ANY" => 0,
"TMP" => 1,
@@ -1023,7 +1012,7 @@ function skip_extra_spec_function($op1, $op2, $extra_spec) {
// Generates opcode handler
function gen_handler($f, $spec, $kind, $name, $op1, $op2, $use, $code, $lineno, $opcode,
$extra_spec = null, &$switch_labels = array()) {
- global $definition_file, $prefix, $typecode, $opnames;
+ global $definition_file, $prefix, $opnames;
if ($spec && skip_extra_spec_function($op1, $op2, $extra_spec)) {
return;
@@ -1256,7 +1245,7 @@ function gen_labels($f, $spec, $kind, $prolog, &$specs, $switch_labels =
array()
};
};
$generate = function ($op1, $op2, $extra_spec = array()) use ($f, $kind, $dsc, $prefix, $prolog,
$num, $switch_labels, &$label) {
- global $typecode, $commutative_order;
+ global $commutative_order;
// Check if specialized handler is defined
/* TODO: figure out better way to signal "specialized and not defined" than an extra
lookup */