From 3341489dfdae6d75f6ae77e00f086a8967eb4c45 Mon Sep 17 00:00:00 2001
From: adroitwhiz <adroitwhiz@protonmail.com>
Date: Tue, 12 May 2020 15:30:20 -0400
Subject: [PATCH] Remove BlockCached._shadowOps

---
 src/engine/execute.js | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/src/engine/execute.js b/src/engine/execute.js
index 51aee7064..df0907a85 100644
--- a/src/engine/execute.js
+++ b/src/engine/execute.js
@@ -267,13 +267,6 @@ class BlockCached {
          */
         this._parentValues = null;
 
-        /**
-         * A sequence of shadow value operations that can be performed in any
-         * order and are easier to perform given that they are static.
-         * @type {Array<BlockCached>}
-         */
-        this._shadowOps = [];
-
         /**
          * A sequence of non-shadow operations that can must be performed. This
          * list recreates the order this block and its children are executed.
@@ -359,7 +352,6 @@ class BlockCached {
                     continue;
                 }
 
-                this._shadowOps.push(...inputCached._shadowOps);
                 this._ops.push(...inputCached._ops);
                 inputCached._parentKey = inputName;
                 inputCached._parentValues = this._argValues;
@@ -374,9 +366,7 @@ class BlockCached {
 
         // The final operation is this block itself. At the top most block is a
         // command block or a block that is being run as a monitor.
-        if (!this._isHat && this._isShadowBlock) {
-            this._shadowOps.push(this);
-        } else if (this._definedBlockFunction) {
+        if (this._definedBlockFunction) {
             this._ops.push(this);
         }
     }