Remove construction from a filename as it's pretty useless

This commit is contained in:
Rapptz 2013-12-09 00:22:37 -05:00
parent 51f7010363
commit 599673150e

View File

@ -66,14 +66,6 @@ public:
global(reg.get<table>(LUA_RIDX_GLOBALS)) { global(reg.get<table>(LUA_RIDX_GLOBALS)) {
lua_atpanic(L.get(), detail::atpanic); lua_atpanic(L.get(), detail::atpanic);
} }
state(const std::string& filename):
L(luaL_newstate(), lua_close),
reg(L.get(), LUA_REGISTRYINDEX),
global(reg.get<table>(LUA_RIDX_GLOBALS)) {
lua_atpanic(L.get(), detail::atpanic);
open_file(filename);
}
template<typename... Args> template<typename... Args>
void open_libraries(Args&&... args) { void open_libraries(Args&&... args) {