schema internal MAINTENANCE removed new_mods set
... because it is not necessary to have it in the ::lys_parser_ctx.
And it is not used at all in the yang_parse_sub/module or
yin_parse_sub/module functions. In other functions
(lys_resolve_import_include, lys_parse_submodule,
lysp_load_submodules), new_mods is passed as a parameter.
diff --git a/src/parser_yang.c b/src/parser_yang.c
index fc10bc4..aa35b81 100644
--- a/src/parser_yang.c
+++ b/src/parser_yang.c
@@ -4556,7 +4556,6 @@
*context = calloc(1, sizeof **context);
LY_CHECK_ERR_RET(!(*context), LOGMEM(ly_ctx), LY_EMEM);
(*context)->format = LYS_IN_YANG;
- (*context)->new_mods = main_ctx->new_mods;
(*context)->in = in;
mod_p = calloc(1, sizeof *mod_p);
@@ -4617,7 +4616,7 @@
}
LY_ERR
-yang_parse_module(struct lys_yang_parser_ctx **context, struct ly_in *in, struct lys_module *mod, struct ly_set *new_mods)
+yang_parse_module(struct lys_yang_parser_ctx **context, struct ly_in *in, struct lys_module *mod)
{
LY_ERR ret = LY_SUCCESS;
char *word;
@@ -4629,7 +4628,6 @@
*context = calloc(1, sizeof **context);
LY_CHECK_ERR_RET(!(*context), LOGMEM(mod->ctx), LY_EMEM);
(*context)->format = LYS_IN_YANG;
- (*context)->new_mods = new_mods;
(*context)->in = in;
mod_p = calloc(1, sizeof *mod_p);