Browse Source

Removed vestigial internal code for Data:getPointer

Alex Szpakowski 12 years ago
parent
commit
16f3a93f28

+ 0 - 8
src/common/wrap_Data.cpp

@@ -28,13 +28,6 @@ Data *luax_checkdata(lua_State *L, int idx)
 	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);
@@ -44,7 +37,6 @@ int w_Data_getSize(lua_State *L)
 
 const luaL_Reg w_Data_functions[] =
 {
-//	{ "getPointer", w_Data_getPointer },
 	{ "getSize", w_Data_getSize },
 	{ 0, 0 }
 };

+ 0 - 1
src/common/wrap_Data.h

@@ -29,7 +29,6 @@ namespace love
 {
 
 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);
 

+ 0 - 1
src/modules/filesystem/physfs/wrap_FileData.cpp

@@ -52,7 +52,6 @@ static const luaL_Reg w_FileData_functions[] =
 {
 
 	// Data
-//	{ "getPointer", w_Data_getPointer },
 	{ "getSize", w_Data_getSize },
 
 	{ "getFilename", w_FileData_getFilename },

+ 0 - 1
src/modules/font/wrap_GlyphData.cpp

@@ -32,7 +32,6 @@ GlyphData *luax_checkglyphdata(lua_State *L, int idx)
 
 static const luaL_Reg functions[] =
 {
-//	{ "getPointer", w_Data_getPointer },
 	{ "getSize", w_Data_getSize },
 	{ 0, 0 }
 };

+ 0 - 1
src/modules/image/wrap_CompressedData.cpp

@@ -109,7 +109,6 @@ int w_CompressedData_getType(lua_State *L)
 static const luaL_Reg functions[] =
 {
 	// Data
-//	{ "getPointer", w_Data_getPointer },
 	{ "getSize", w_Data_getSize },
 
 	{ "getWidth", w_CompressedData_getWidth },

+ 0 - 1
src/modules/image/wrap_ImageData.cpp

@@ -191,7 +191,6 @@ int w_ImageData_encode(lua_State *L)
 static const luaL_Reg functions[] =
 {
 	// Data
-//	{ "getPointer", w_Data_getPointer },
 	{ "getSize", w_Data_getSize },
 
 	{ "getWidth", w_ImageData_getWidth },

+ 0 - 1
src/modules/sound/wrap_SoundData.cpp

@@ -88,7 +88,6 @@ static const luaL_Reg functions[] =
 {
 
 	// Data
-//	{ "getPointer", w_Data_getPointer },
 	{ "getSize", w_Data_getSize },
 
 	{ "getChannels", w_SoundData_getChannels },

+ 0 - 1
src/modules/sound/wrap_SoundData.h

@@ -31,7 +31,6 @@ namespace sound
 {
 
 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);