X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4d368893c1c4c43aea93f16c3e519b29b278b693..ceeab8813fc0aff89562202f64c29a808e84cb9a:/src/surf/surfxml_parseplatf.c diff --git a/src/surf/surfxml_parseplatf.c b/src/surf/surfxml_parseplatf.c index 9d5964e30a..1bfcdf44c7 100644 --- a/src/surf/surfxml_parseplatf.c +++ b/src/surf/surfxml_parseplatf.c @@ -98,17 +98,7 @@ void parse_platform_file(const char *file) * written in lua). If not, we will use the (old?) XML parser */ if (is_lua) { - // NOTE: After executing the lua_pcall() below, - // sglua_get_maestro() will not be NULL, since the - // SimGrid module was loaded! - // C. Heinrich 01/2016: Not sure if this is still required after I - // ripped out most of that bloody Lua simulation stuff. We may - // want to check and maybe we can clean that up. - lua_State* L; - - if (L == NULL) { - L = luaL_newstate(); - } + lua_State* L = luaL_newstate(); luaL_openlibs(L); luaL_loadfile(L, file); // This loads the file without executing it.