From 3908dd75438de89ebec2b0737634faf23ce93884 Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 16 Feb 2022 19:42:50 +0100 Subject: refactor: delete vector2 copy --- src/engine/vector2.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/engine/vector2.cpp') 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::copy() -{ - return std::make_shared(*this); -} - Vector2 Vector2::operator*(const Vector2 &vector2) const { return Vector2({.x = _x * vector2.x(), .y = _y * vector2.y()}); -- cgit v1.2.3-18-g5258