esql_model: removed redundant variable through the code.