summaryrefslogtreecommitdiffstats
path: root/src/Bindings/DeprecatedBindings.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2020-04-14 16:43:21 +0200
committerGitHub <noreply@github.com>2020-04-14 16:43:21 +0200
commitc9a9b3c9d0d4fed0b02d9935923bfd7dcbc45d1e (patch)
tree7d7ba1d772d1f4994773f325046a4e6229c91d16 /src/Bindings/DeprecatedBindings.cpp
parentPressure plate sounds and delay (#4643) (diff)
downloadcuberite-c9a9b3c9d0d4fed0b02d9935923bfd7dcbc45d1e.tar
cuberite-c9a9b3c9d0d4fed0b02d9935923bfd7dcbc45d1e.tar.gz
cuberite-c9a9b3c9d0d4fed0b02d9935923bfd7dcbc45d1e.tar.bz2
cuberite-c9a9b3c9d0d4fed0b02d9935923bfd7dcbc45d1e.tar.lz
cuberite-c9a9b3c9d0d4fed0b02d9935923bfd7dcbc45d1e.tar.xz
cuberite-c9a9b3c9d0d4fed0b02d9935923bfd7dcbc45d1e.tar.zst
cuberite-c9a9b3c9d0d4fed0b02d9935923bfd7dcbc45d1e.zip
Diffstat (limited to 'src/Bindings/DeprecatedBindings.cpp')
-rw-r--r--src/Bindings/DeprecatedBindings.cpp58
1 files changed, 0 insertions, 58 deletions
diff --git a/src/Bindings/DeprecatedBindings.cpp b/src/Bindings/DeprecatedBindings.cpp
index fbbf408e6..63b5919ac 100644
--- a/src/Bindings/DeprecatedBindings.cpp
+++ b/src/Bindings/DeprecatedBindings.cpp
@@ -518,49 +518,6 @@ static int tolua_cWorld_SetSignLines(lua_State * tolua_S)
-template <typename T>
-int tolua_Vector3_Abs(lua_State * a_LuaState)
-{
- // Retrieve the params, including self:
- cLuaState L(a_LuaState);
- Vector3<T> * self;
- if (!L.GetStackValues(1, self))
- {
- tolua_error(a_LuaState, "invalid 'self' in function 'Vector3<T>:Abs'", nullptr);
- return 0;
- }
-
- // Absolutize the vector:
- self->Abs();
- return 0;
-}
-
-
-
-
-
-template <typename T>
-int tolua_Vector3_Clamp(lua_State * a_LuaState)
-{
- // Retrieve the params, including self:
- cLuaState L(a_LuaState);
- Vector3<T> * self;
- T min, max;
- if (!L.GetStackValues(1, self, min, max))
- {
- tolua_error(a_LuaState, "invalid parameters for function 'Vector3<T>:Clamp', expected a Vector3 and two numbers", nullptr);
- return 0;
- }
-
- // Clamp the vector:
- self->Clamp(min, max);
- return 0;
-}
-
-
-
-
-
void DeprecatedBindings::Bind(lua_State * tolua_S)
{
tolua_beginmodule(tolua_S, nullptr);
@@ -604,21 +561,6 @@ void DeprecatedBindings::Bind(lua_State * tolua_S)
tolua_function(tolua_S, "UpdateSign", tolua_cWorld_SetSignLines);
tolua_endmodule(tolua_S);
- tolua_beginmodule(tolua_S, "Vector3i");
- tolua_function(tolua_S,"abs", tolua_Vector3_Abs<int>);
- tolua_function(tolua_S,"clamp", tolua_Vector3_Clamp<int>);
- tolua_endmodule(tolua_S);
-
- tolua_beginmodule(tolua_S, "Vector3f");
- tolua_function(tolua_S,"abs", tolua_Vector3_Abs<float>);
- tolua_function(tolua_S,"clamp", tolua_Vector3_Clamp<float>);
- tolua_endmodule(tolua_S);
-
- tolua_beginmodule(tolua_S, "Vector3d");
- tolua_function(tolua_S,"abs", tolua_Vector3_Abs<double>);
- tolua_function(tolua_S,"clamp", tolua_Vector3_Clamp<double>);
- tolua_endmodule(tolua_S);
-
tolua_endmodule(tolua_S);
}