From 67153f816c7cfb7993e66f433197d787fa7e25ca Mon Sep 17 00:00:00 2001 From: andyque Date: Fri, 3 Jan 2014 10:44:43 +0800 Subject: [PATCH] remove unused code --- cocos/base/CCVector.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/cocos/base/CCVector.h b/cocos/base/CCVector.h index 12d9de6d34..d751479d23 100644 --- a/cocos/base/CCVector.h +++ b/cocos/base/CCVector.h @@ -265,14 +265,7 @@ public: * which causes an automatic reallocation of the allocated storage space * if -and only if- the new vector size surpasses the current vector capacity. */ - void pushBack(const T& object) - { - CCASSERT(object != nullptr, "The object should not be nullptr"); - _data.push_back( object ); - object->retain(); - } - - void pushBack(T&& object) + void pushBack(T object) { CCASSERT(object != nullptr, "The object should not be nullptr"); _data.push_back( object );