diff --git a/src/common/wrap_Data.cpp b/src/common/wrap_Data.cpp index 76996a261..ccb23d8b5 100644 --- a/src/common/wrap_Data.cpp +++ b/src/common/wrap_Data.cpp @@ -28,13 +28,6 @@ Data *luax_checkdata(lua_State *L, int idx) return luax_checktype(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 } }; diff --git a/src/common/wrap_Data.h b/src/common/wrap_Data.h index bdcc7cecf..26c57a0b8 100644 --- a/src/common/wrap_Data.h +++ b/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); diff --git a/src/modules/filesystem/physfs/wrap_FileData.cpp b/src/modules/filesystem/physfs/wrap_FileData.cpp index 8b9e10f22..161c47de3 100644 --- a/src/modules/filesystem/physfs/wrap_FileData.cpp +++ b/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 }, diff --git a/src/modules/font/wrap_GlyphData.cpp b/src/modules/font/wrap_GlyphData.cpp index f28a55530..ca9e7dcea 100644 --- a/src/modules/font/wrap_GlyphData.cpp +++ b/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 } }; diff --git a/src/modules/image/wrap_CompressedData.cpp b/src/modules/image/wrap_CompressedData.cpp index 43dd3356d..47a6b9a7c 100644 --- a/src/modules/image/wrap_CompressedData.cpp +++ b/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 }, diff --git a/src/modules/image/wrap_ImageData.cpp b/src/modules/image/wrap_ImageData.cpp index 0e5a91255..f8bf7e568 100644 --- a/src/modules/image/wrap_ImageData.cpp +++ b/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 }, diff --git a/src/modules/sound/wrap_SoundData.cpp b/src/modules/sound/wrap_SoundData.cpp index d773e6737..d870dddb9 100644 --- a/src/modules/sound/wrap_SoundData.cpp +++ b/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 }, diff --git a/src/modules/sound/wrap_SoundData.h b/src/modules/sound/wrap_SoundData.h index d07f4bd35..5cff49380 100644 --- a/src/modules/sound/wrap_SoundData.h +++ b/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);