Skip to content

Commit

Permalink
Removing unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasguisasola committed Mar 30, 2012
1 parent 07e1cbb commit 44f0907
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
3 changes: 0 additions & 3 deletions src/ls_mysql.c
Expand Up @@ -598,11 +598,8 @@ LUASQL_API int luaopen_luasql_mysql (lua_State *L) {
{NULL, NULL},
};
create_metatables (L);

/* luaL_openlib (L, LUASQL_TABLENAME, driver, 0); */
lua_newtable(L);
luaL_setfuncs(L, driver, 0);

luasql_set_info (L);
lua_pushliteral (L, "_MYSQLVERSION");
lua_pushliteral (L, MYSQL_SERVER_VERSION);
Expand Down
7 changes: 2 additions & 5 deletions src/ls_postgres.c
Expand Up @@ -602,11 +602,8 @@ LUASQL_API int luaopen_luasql_postgres (lua_State *L) {
{NULL, NULL},
};
create_metatables (L);

/* luaL_openlib (L, LUASQL_TABLENAME, driver, 0); */
lua_newtable(L);
luaL_setfuncs(L, driver, 0);

lua_newtable (L);
luaL_setfuncs (L, driver, 0);
luasql_set_info (L);
return 1;
}
5 changes: 2 additions & 3 deletions src/ls_sqlite3.c
Expand Up @@ -662,9 +662,8 @@ LUASQL_API int luaopen_luasql_sqlite3(lua_State *L)
{NULL, NULL},
};
create_metatables (L);
/* luaL_openlib (L, LUASQL_TABLENAME, driver, 0); */
lua_newtable(L);
luaL_setfuncs(L, driver, 0);
lua_newtable (L);
luaL_setfuncs (L, driver, 0);
luasql_set_info (L);
return 1;
}

0 comments on commit 44f0907

Please sign in to comment.