Commits

Alex Szpakowski  committed ee3b2ef

Removed vestigial internal code for Data:getPointer

  • Participants
  • Parent commits cea14bc

Comments (0)

Files changed (8)

File src/common/wrap_Data.cpp

 	return luax_checktype<Data>(L, idx, "Data", DATA_T);
 }
 
-int w_Data_getPointer(lua_State *L)
-{
-	Data *t = luax_checkdata(L, 1);
-	lua_pushlightuserdata(L, t->getData());
-	return 1;
-}
-
 int w_Data_getSize(lua_State *L)
 {
 	Data *t = luax_checkdata(L, 1);
 
 const luaL_Reg w_Data_functions[] =
 {
-//	{ "getPointer", w_Data_getPointer },
 	{ "getSize", w_Data_getSize },
 	{ 0, 0 }
 };

File src/common/wrap_Data.h

 {
 
 Data *luax_checkdata(lua_State *L, int idx);
-int w_Data_getPointer(lua_State *L);
 int w_Data_getSize(lua_State *L);
 int w_Data_open(lua_State *L);
 

File src/modules/filesystem/physfs/wrap_FileData.cpp

 {
 
 	// Data
-//	{ "getPointer", w_Data_getPointer },
 	{ "getSize", w_Data_getSize },
 
 	{ "getFilename", w_FileData_getFilename },

File src/modules/font/wrap_GlyphData.cpp

 
 static const luaL_Reg functions[] =
 {
-//	{ "getPointer", w_Data_getPointer },
 	{ "getSize", w_Data_getSize },
 	{ 0, 0 }
 };

File src/modules/image/wrap_CompressedData.cpp

 static const luaL_Reg functions[] =
 {
 	// Data
-//	{ "getPointer", w_Data_getPointer },
 	{ "getSize", w_Data_getSize },
 
 	{ "getWidth", w_CompressedData_getWidth },

File src/modules/image/wrap_ImageData.cpp

 static const luaL_Reg functions[] =
 {
 	// Data
-//	{ "getPointer", w_Data_getPointer },
 	{ "getSize", w_Data_getSize },
 
 	{ "getWidth", w_ImageData_getWidth },

File src/modules/sound/wrap_SoundData.cpp

 {
 
 	// Data
-//	{ "getPointer", w_Data_getPointer },
 	{ "getSize", w_Data_getSize },
 
 	{ "getChannels", w_SoundData_getChannels },

File src/modules/sound/wrap_SoundData.h

 {
 
 SoundData *luax_checksounddata(lua_State *L, int idx);
-int w_getPointer(lua_State *L);
 int w_getSize(lua_State *L);
 int w_getChannels(lua_State *L);
 int w_getBits(lua_State *L);