From ebc5ea1627e61d8a581b6a51c2e264d151cdf1ad Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Wed, 10 Jan 2024 20:52:39 +0100 Subject: [PATCH] More simplifications --- generator/src/generator/ScxmlModel.egl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/generator/src/generator/ScxmlModel.egl b/generator/src/generator/ScxmlModel.egl index 223d245..f2456e3 100644 --- a/generator/src/generator/ScxmlModel.egl +++ b/generator/src/generator/ScxmlModel.egl @@ -12,13 +12,13 @@ operation t_scxml getModel() : Tuple { region.states = new List(); for (state in self.c_state) { - region.states.add(state.getModel(result)); + region.states.add(state.getModel()); } return result; } -operation t_state getModel(sm : Tuple) : Tuple { +operation t_state getModel() : Tuple { var result = new Tuple(); result.name = self.a_id; @@ -45,7 +45,7 @@ operation t_state getModel(sm : Tuple) : Tuple { region.states = new List(); for (state in self.c_state) { - var state_model = state.getModel(sm); + var state_model = state.getModel(); state_model.parent = result.name; region.states.add(state_model); }