From 15f3a7fe37ef5a34b82e8314a1b22451b7a2d9b7 Mon Sep 17 00:00:00 2001 From: andri lim Date: Thu, 9 May 2019 10:27:39 +0700 Subject: [PATCH] remove unused .child from computation --- nimbus/vm/interpreter/opcodes_impl.nim | 2 -- nimbus/vm_types.nim | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/nimbus/vm/interpreter/opcodes_impl.nim b/nimbus/vm/interpreter/opcodes_impl.nim index ece1c2b0d..d2f9938a1 100644 --- a/nimbus/vm/interpreter/opcodes_impl.nim +++ b/nimbus/vm/interpreter/opcodes_impl.nim @@ -606,7 +606,6 @@ template genCreate(callName: untyped, opCode: Op): untyped = var childComp = setupCreate(computation, memPos, len, value, opCode) if childComp.isNil: return - computation.child = childComp continuation(childComp): addChildComputation(computation, childComp) @@ -782,7 +781,6 @@ template genCall(callName: untyped, opCode: Op): untyped = ## STATICCALL, 0xfa, Static message-call into an account. var childComp = `callName Setup`(computation, callName.astToStr) - computation.child = childComp continuation(childComp): addChildComputation(computation, childComp) diff --git a/nimbus/vm_types.nim b/nimbus/vm_types.nim index f3be67e5d..45fdd05dc 100644 --- a/nimbus/vm_types.nim +++ b/nimbus/vm_types.nim @@ -73,8 +73,7 @@ type # continuation helpers nextProc*: proc() {.gcsafe.} memOutLen*: int - memOutPos*: int - child*: BaseComputation + memOutPos*: int Error* = ref object info*: string