mirror of https://github.com/axmolengine/axmol.git
remove unused code
This commit is contained in:
parent
0e90ef8337
commit
67153f816c
|
@ -265,14 +265,7 @@ public:
|
||||||
* which causes an automatic reallocation of the allocated storage space
|
* which causes an automatic reallocation of the allocated storage space
|
||||||
* if -and only if- the new vector size surpasses the current vector capacity.
|
* if -and only if- the new vector size surpasses the current vector capacity.
|
||||||
*/
|
*/
|
||||||
void pushBack(const T& object)
|
void pushBack(T object)
|
||||||
{
|
|
||||||
CCASSERT(object != nullptr, "The object should not be nullptr");
|
|
||||||
_data.push_back( object );
|
|
||||||
object->retain();
|
|
||||||
}
|
|
||||||
|
|
||||||
void pushBack(T&& object)
|
|
||||||
{
|
{
|
||||||
CCASSERT(object != nullptr, "The object should not be nullptr");
|
CCASSERT(object != nullptr, "The object should not be nullptr");
|
||||||
_data.push_back( object );
|
_data.push_back( object );
|
||||||
|
|
Loading…
Reference in New Issue