diff options
author | HampusM <hampus@hampusmat.com> | 2022-02-16 19:42:50 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-02-16 19:42:50 +0100 |
commit | 3908dd75438de89ebec2b0737634faf23ce93884 (patch) | |
tree | cd4183ab6a3b07e747b75dafafb1e8a819304e10 /src/engine/vector2.cpp | |
parent | 91286f9dbb85fc2805345ba72468d5f145228be8 (diff) |
refactor: delete vector2 copy
Diffstat (limited to 'src/engine/vector2.cpp')
-rw-r--r-- | src/engine/vector2.cpp | 5 |
1 files changed, 0 insertions, 5 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()}); |