From 91cc385340a3b30d6fa58024fd06b6aa30a297e6 Mon Sep 17 00:00:00 2001 From: Nevyn Bengtsson Date: Sun, 19 Jan 2020 22:43:13 +0100 Subject: [PATCH] Remove redundant SoundData:getPointer() --- src/api/l_data_soundData.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/api/l_data_soundData.c b/src/api/l_data_soundData.c index 81662dc1..73ff3afd 100644 --- a/src/api/l_data_soundData.c +++ b/src/api/l_data_soundData.c @@ -47,12 +47,6 @@ static int l_lovrSoundDataSetSample(lua_State* L) { return 0; } -static int l_lovrSoundDataGetPointer(lua_State* L) { - SoundData* soundData = luax_checktype(L, 1, SoundData); - lua_pushlightuserdata(L, soundData->blob->data); - return 1; -} - static int l_lovrSoundDataGetBlob(lua_State* L) { SoundData* soundData = luax_checktype(L, 1, SoundData); Blob* blob = soundData->blob; @@ -69,7 +63,6 @@ const luaL_Reg lovrSoundData[] = { { "getSampleCount", l_lovrSoundDataGetSampleCount }, { "getSampleRate", l_lovrSoundDataGetSampleRate }, { "setSample", l_lovrSoundDataSetSample }, - { "getPointer", l_lovrSoundDataGetPointer }, { "getBlob", l_lovrSoundDataGetBlob }, { NULL, NULL } };