diff --git a/src/common/Reference.cpp b/src/common/Reference.cpp index dff336d2f..0a2a7d49e 100644 --- a/src/common/Reference.cpp +++ b/src/common/Reference.cpp @@ -19,6 +19,7 @@ **/ #include "Reference.h" +#include "runtime.h" namespace love { diff --git a/src/common/Reference.h b/src/common/Reference.h index b50edf463..6eea8f88c 100644 --- a/src/common/Reference.h +++ b/src/common/Reference.h @@ -21,8 +21,7 @@ #ifndef LOVE_REFERENCE_H #define LOVE_REFERENCE_H -// LOVE -#include "runtime.h" +struct lua_State; namespace love { diff --git a/src/common/Variant.h b/src/common/Variant.h index 7bcd31ccd..4a3662ff3 100644 --- a/src/common/Variant.h +++ b/src/common/Variant.h @@ -56,7 +56,7 @@ public: public: SharedString(const char *string, size_t len) - : len(len) + : len(len) { str = new char[len+1]; memcpy(str, string, len); @@ -72,7 +72,7 @@ public: public: SharedTable(std::vector> *table) - : table(table) + : table(table) { } diff --git a/src/modules/physics/box2d/Body.cpp b/src/modules/physics/box2d/Body.cpp index 959a8c615..27a5c0765 100644 --- a/src/modules/physics/box2d/Body.cpp +++ b/src/modules/physics/box2d/Body.cpp @@ -512,21 +512,6 @@ int Body::getContacts(lua_State *L) const return 1; } -b2Vec2 Body::getVector(lua_State *L) -{ - love::luax_assert_argc(L, 2, 2); - b2Vec2 v((float)lua_tonumber(L, 1), (float)lua_tonumber(L, 2)); - lua_pop(L, 2); - return v; -} - -int Body::pushVector(lua_State *L, const b2Vec2 &v) -{ - lua_pushnumber(L, v.x); - lua_pushnumber(L, v.y); - return 2; -} - void Body::destroy() { if (world->world->IsLocked()) diff --git a/src/modules/physics/box2d/Body.h b/src/modules/physics/box2d/Body.h index 95feb7e9d..9530da067 100644 --- a/src/modules/physics/box2d/Body.h +++ b/src/modules/physics/box2d/Body.h @@ -426,17 +426,6 @@ public: private: - /** - * Gets a 2d vector from the arguments on the stack. - **/ - b2Vec2 getVector(lua_State *L); - - /** - * Pushed the x- and y-components of a vector on - * the stack. - **/ - int pushVector(lua_State *L, const b2Vec2 &v); - // FIXME: This should be a weak reference, rather than being completely // unowned? World *world;