mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Misc: Remove redundant copy constructor for Position and WorldLocation (#24151)
* Default compiler generated ones do the same
(cherry picked from commit b92e4af460)
This commit is contained in:
@@ -29,8 +29,6 @@ struct TC_GAME_API Position
|
||||
Position(float x = 0, float y = 0, float z = 0, float o = 0)
|
||||
: m_positionX(x), m_positionY(y), m_positionZ(z), m_orientation(NormalizeOrientation(o)) { }
|
||||
|
||||
Position(Position const& loc) { Relocate(loc); }
|
||||
|
||||
// streamer tags
|
||||
struct XY;
|
||||
struct XYZ;
|
||||
@@ -60,12 +58,6 @@ private:
|
||||
float m_orientation;
|
||||
|
||||
public:
|
||||
Position& operator=(Position const& loc)
|
||||
{
|
||||
Relocate(loc);
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool operator==(Position const &a) const;
|
||||
|
||||
inline bool operator!=(Position const &a) const
|
||||
|
||||
Reference in New Issue
Block a user