Revert "add a Lua helper to check for a file in the library path"

This reverts commit 27fb0f1973.
This commit is contained in:
Tim Felgentreff 2019-03-31 19:54:30 +02:00
parent 14fd81ef7f
commit 9567787af2

View file

@ -289,17 +289,6 @@ static int CclLoadBuffer(lua_State *l)
return 1;
}
/**
** Check if a file is accessible.
** @param l Lua state
** @return true or false
**/
static int CclCanAccessFile(lua_State *l) {
LuaCheckArgs(l, 1);
lua_pushboolean(l, CanAccessFile(LuaToString(l, 1)));
return 0;
}
/**
** Convert lua string in char*.
** It checks also type and exit in case of error.
@ -2450,8 +2439,6 @@ void ScriptRegister()
lua_register(Lua, "Load", CclLoad);
lua_register(Lua, "LoadBuffer", CclLoadBuffer);
lua_register(Lua, "CanAccessFile", CclCanAccessFile);
lua_register(Lua, "DebugPrint", CclDebugPrint);
}