aboutsummaryrefslogtreecommitdiff
path: root/src/engine
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/vector2.cpp5
-rw-r--r--src/engine/vector2.hpp7
2 files changed, 0 insertions, 12 deletions
diff --git a/src/engine/vector2.cpp b/src/engine/vector2.cpp
index d091ea5..2d2283b 100644
--- a/src/engine/vector2.cpp
+++ b/src/engine/vector2.cpp
@@ -24,11 +24,6 @@ void Vector2::y(unsigned int y)
_y = y;
}
-std::shared_ptr<Vector2> Vector2::copy()
-{
- return std::make_shared<Vector2>(*this);
-}
-
Vector2 Vector2::operator*(const Vector2 &vector2) const
{
return Vector2({.x = _x * vector2.x(), .y = _y * vector2.y()});
diff --git a/src/engine/vector2.hpp b/src/engine/vector2.hpp
index 8423431..f69008f 100644
--- a/src/engine/vector2.hpp
+++ b/src/engine/vector2.hpp
@@ -43,13 +43,6 @@ public:
*/
void y(unsigned int y);
- /**
- * Creates a copy of the 2D vector.
- *
- * @returns A identical 2D vector.
- */
- std::shared_ptr<Vector2> copy();
-
Vector2 operator*(const Vector2 &vector2) const;
Vector2 operator+(const Vector2 &vector2) const;
Vector2 operator-(const Vector2 &vector2) const;