remove unused code
This commit is contained in:
parent
9c59311b41
commit
6623641ebb
1 changed files with 0 additions and 6 deletions
|
@ -213,7 +213,6 @@ int load_file(lua_State *L)
|
|||
if (p.empty()) {
|
||||
return luaL_argerror(L, -1, "file not found");
|
||||
}
|
||||
#if 1
|
||||
try
|
||||
{
|
||||
if(lua_filestream::lua_loadfile(L, p, m)) {
|
||||
|
@ -224,11 +223,6 @@ int load_file(lua_State *L)
|
|||
{
|
||||
luaL_argerror(L, -1, ex.what());
|
||||
}
|
||||
#else
|
||||
//oldcode to be deleted if newcode works
|
||||
if (luaL_loadfile(L, p.c_str()))
|
||||
return lua_error(L);
|
||||
#endif
|
||||
lua_remove(L, -2); //remove the filename from the stack
|
||||
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue