clearing some old compatibility code

This commit is contained in:
Roberto Ierusalimschy
2007-06-21 10:52:27 -03:00
parent 791d8d8585
commit 8d3dd04137
7 changed files with 13 additions and 149 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: loadlib.c,v 1.56 2006/10/10 17:40:17 roberto Exp roberto $
** $Id: loadlib.c,v 1.57 2007/03/26 15:57:35 roberto Exp roberto $
** Dynamic library loader for Lua
** See Copyright Notice in lua.h
**
@@ -628,10 +628,6 @@ LUALIB_API int luaopen_package (lua_State *L) {
lua_setfield(L, -2, "__gc");
/* create `package' table */
luaL_register(L, LUA_LOADLIBNAME, pk_funcs);
#if defined(LUA_COMPAT_LOADLIB)
lua_getfield(L, -1, "loadlib");
lua_setfield(L, LUA_GLOBALSINDEX, "loadlib");
#endif
lua_pushvalue(L, -1);
lua_replace(L, LUA_ENVIRONINDEX);
/* create `loaders' table */