Skip to content

Commit 67ba5b4

Browse files
JohnCoconutminggo
authored andcommitted
refactor Quaternion class (#20031)
* remove redundant copy constructor and destructor
1 parent baa6381 commit 67ba5b4

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

cocos/math/Quaternion.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,6 @@ Quaternion::Quaternion(const Vec3& axis, float angle)
5353
set(axis, angle);
5454
}
5555

56-
Quaternion::Quaternion(const Quaternion& copy)
57-
{
58-
set(copy);
59-
}
60-
61-
Quaternion::~Quaternion()
62-
{
63-
}
64-
6556
const Quaternion& Quaternion::identity()
6657
{
6758
static Quaternion value(0.0f, 0.0f, 0.0f, 1.0f);

cocos/math/Quaternion.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -125,18 +125,6 @@ class CC_DLL Quaternion
125125
*/
126126
Quaternion(const Vec3& axis, float angle);
127127

128-
/**
129-
* Constructs a new quaternion that is a copy of the specified one.
130-
*
131-
* @param copy The quaternion to copy.
132-
*/
133-
Quaternion(const Quaternion& copy);
134-
135-
/**
136-
* Destructor.
137-
*/
138-
~Quaternion();
139-
140128
/**
141129
* Returns the identity quaternion.
142130
*

0 commit comments

Comments
 (0)