diff --git a/nse_pcrelib.cc b/nse_pcrelib.cc index 370c1238c..87cac63a0 100644 --- a/nse_pcrelib.cc +++ b/nse_pcrelib.cc @@ -71,14 +71,6 @@ static int get_flags (lua_State *L, const flags_pair *arr) return 1; } -static void createmeta(lua_State *L, const char *name) -{ - (void)luaL_newmetatable(L, name); /* create new metatable */ - lua_pushliteral(L, "__index"); - lua_pushvalue(L, -2); /* push metatable */ - lua_rawset(L, -3); /* metatable.__index = metatable */ -} - const char pcre_handle[] = "pcre_regex_handle"; const char pcre_typename[] = "pcre_regex";