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

@ -67,14 +67,6 @@ public:
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>
void open_libraries(Args&&... args) {
static_assert(detail::are_same<lib, Args...>::value, "all types must be libraries");