~cypheon/elfelli

949efda7e1afe3669bc8483a9fc2b1c10b455138 — Johann Rudloff 4 months ago 31551e6
Remove redundant copy constructor
2 files changed, 0 insertions(+), 8 deletions(-)

M src/Simulation.cpp
M src/Simulation.h
M src/Simulation.cpp => src/Simulation.cpp +0 -7
@@ 45,13 45,6 @@ Vec2::Vec2(float x, float y)
  this->y = y;
}

Vec2 Vec2::operator=(const Vec2& v)
{
  x = v.x;
  y = v.y;
  return (*this);
}

Vec2 Vec2::operator+(const Vec2& v)
{
  Vec2 r;

M src/Simulation.h => src/Simulation.h +0 -1
@@ 35,7 35,6 @@ public:
  Vec2();
  Vec2(float x, float y);

  Vec2 operator=(const Vec2& v);
  Vec2 operator+(const Vec2& v);
  Vec2 operator-(const Vec2& v);
  Vec2 operator*(float c);