diff --git a/cocos/base/CCDirector.cpp b/cocos/base/CCDirector.cpp index 2b5de9ce1c..86d82ac865 100644 --- a/cocos/base/CCDirector.cpp +++ b/cocos/base/CCDirector.cpp @@ -1228,22 +1228,6 @@ void Director::getFPSImageData(unsigned char** datapointer, ssize_t* length) *length = cc_fps_images_len(); } -template -static T* newInstance2(std::function pFunc, Ts&&... args) -{ - T* pRet = new(std::nothrow) T(); - if (pRet && std::mem_fn(memf)(pRet, std::forward(args)...)) - { - return pRet; - } - else - { - delete pRet; - pRet = nullptr; - return nullptr; - } -} - void Director::createStatsLabel() { Texture2D *texture = nullptr;