From 599673150ebadfcbfd87e21701a021b4d228debb Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 9 Dec 2013 00:22:37 -0500 Subject: [PATCH] Remove construction from a filename as it's pretty useless --- sol/state.hpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sol/state.hpp b/sol/state.hpp index 809f5dc4..ebd4ced7 100644 --- a/sol/state.hpp +++ b/sol/state.hpp @@ -66,14 +66,6 @@ public: global(reg.get(LUA_RIDX_GLOBALS)) { lua_atpanic(L.get(), detail::atpanic); } - - state(const std::string& filename): - L(luaL_newstate(), lua_close), - reg(L.get(), LUA_REGISTRYINDEX), - global(reg.get
(LUA_RIDX_GLOBALS)) { - lua_atpanic(L.get(), detail::atpanic); - open_file(filename); - } template void open_libraries(Args&&... args) {