Browse Source

Remove Data:getInt64 and ByteData:setInt64.

Lua numbers don't cover the full range for 64 bit integers, so those methods couldn't be reliable.
Sasha Szpakowski 1 year ago
parent
commit
d2eca731d4
2 changed files with 0 additions and 24 deletions
  1. 0 12
      src/modules/data/wrap_ByteData.cpp
  2. 0 12
      src/modules/data/wrap_Data.cpp

+ 0 - 12
src/modules/data/wrap_ByteData.cpp

@@ -135,16 +135,6 @@ int w_ByteData_setUInt32(lua_State *L)
 	return w_ByteData_setT<uint32>(L);
 }
 
-int w_ByteData_setInt64(lua_State *L)
-{
-	return w_ByteData_setT<int64>(L);
-}
-
-int w_ByteData_setUInt64(lua_State *L)
-{
-	return w_ByteData_setT<uint64>(L);
-}
-
 static const luaL_Reg w_ByteData_functions[] =
 {
 	{ "clone", w_ByteData_clone },
@@ -157,8 +147,6 @@ static const luaL_Reg w_ByteData_functions[] =
 	{ "setUInt16", w_ByteData_setUInt16 },
 	{ "setInt32", w_ByteData_setInt32 },
 	{ "setUInt32", w_ByteData_setUInt32 },
-	{ "setInt64", w_ByteData_setInt64 },
-	{ "setUInt64", w_ByteData_setUInt64 },
 	{ 0, 0 }
 };
 

+ 0 - 12
src/modules/data/wrap_Data.cpp

@@ -160,16 +160,6 @@ int w_Data_getUInt32(lua_State* L)
 	return w_Data_getT<uint32>(L);
 }
 
-int w_Data_getInt64(lua_State* L)
-{
-	return w_Data_getT<int64>(L);
-}
-
-int w_Data_getUInt64(lua_State* L)
-{
-	return w_Data_getT<uint64>(L);
-}
-
 // C functions in a struct, necessary for the FFI versions of Data methods.
 struct FFI_Data
 {
@@ -200,8 +190,6 @@ const luaL_Reg w_Data_functions[] =
 	{ "getUInt16", w_Data_getUInt16 },
 	{ "getInt32", w_Data_getInt32 },
 	{ "getUInt32", w_Data_getUInt32 },
-	{ "getInt64", w_Data_getInt64 },
-	{ "getUInt64", w_Data_getUInt64 },
 	{ 0, 0 }
 };