From 06203d8767e7da55deb4947c7660ff0136a31f29 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sat, 30 Jun 2018 21:20:51 -0600 Subject: Removed some dead code Removed a lot of commented out old code --- src/client/lua_api/scene/icamera.cpp | 35 ----------------------------------- 1 file changed, 35 deletions(-) (limited to 'src/client/lua_api/scene/icamera.cpp') diff --git a/src/client/lua_api/scene/icamera.cpp b/src/client/lua_api/scene/icamera.cpp index 0554ce1..482bf31 100644 --- a/src/client/lua_api/scene/icamera.cpp +++ b/src/client/lua_api/scene/icamera.cpp @@ -22,29 +22,6 @@ using namespace core; extern IrrlichtDevice* device; -//static LISceneNode* checkiscenecamera(lua_State* L, int index){ - //void* ud = luaL_checkudata(L,index,"scene.iscenecamera"); - //luaL_argcheck(L,ud != NULL, index, "'scene.iscenecamera' expected"); - //return (LISceneNode*) ud; -//} - -/* -static LISceneNode* checkiscenecamera(lua_State* L){ - return checkiscenecamera(L,1); -} -*/ - -//static LISceneNode* checkismayacamera(lua_State* L, int index){ - //void* ud = luaL_checkudata(L,index,"scene.iscenemayacamera"); - //luaL_argcheck(L,ud != NULL, index, "'scene.iscenemayacamera' expected"); - //return (LISceneNode*) ud; -//} -/* -static LISceneNode* checkismayacamera(lua_State* L){ - return checkismayacamera(L,1); -} -*/ - static int newiscenemayacamera(lua_State* L){ printf("createing maya camera!\n"); ISceneManager* smgr = device->getSceneManager(); @@ -53,23 +30,11 @@ static int newiscenemayacamera(lua_State* L){ lua_newtable(L);//{} lua_pushlightuserdata(L,cam); lua_setfield(L,-2,"node"); - //LISceneNode* lcam = (LISceneNode*)lua_newuserdata(L, sizeof(LISceneNode)); - //int tref = luaL_ref(L,LUA_REGISTRYINDEX); //Set it's metatable luaL_getmetatable(L, "scene.iscenemayacamera"); lua_setmetatable(L, -2); - //Create the struct - //lcam->n = cam; - //lcam->funcmap = hashmap_new(); - //lcam->type = "iscenemayacamera"; - - //Free up anything made in this function - //free(label); - - //Put it on top and return it - //lua_rawgeti(L,LUA_REGISTRYINDEX,tref); return 1; } -- cgit v1.2.3-70-g09d2