From 613f34f89c5417828a5534641d8886bb75f62867 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Tue, 5 Jul 2022 09:43:06 +0300 Subject: [PATCH] Remove unused arg field --- src/interpreter.cc | 3 --- src/interpreter.h | 1 - 2 files changed, 4 deletions(-) diff --git a/src/interpreter.cc b/src/interpreter.cc index 898a543..45bced9 100644 --- a/src/interpreter.cc +++ b/src/interpreter.cc @@ -2596,9 +2596,6 @@ void _interpret(Program* program, int a2) programFatalError(err); } - // Reset argument counter for error reporting. - program->arg = 0; - handler(program); } diff --git a/src/interpreter.h b/src/interpreter.h index fd91397..87f7c74 100644 --- a/src/interpreter.h +++ b/src/interpreter.h @@ -171,7 +171,6 @@ typedef struct Program { bool exited; ProgramStack* stackValues; ProgramStack* returnStackValues; - int arg; } Program; typedef void OpcodeHandler(Program* program);