From e537683b3f16b0e06d2c0d6e6b47f9de579cad71 Mon Sep 17 00:00:00 2001 From: halx99 Date: Wed, 9 Sep 2020 15:47:41 +0800 Subject: [PATCH] fix compile issue[skip appveyor] --- cocos/base/CCDirector.cpp | 16 ---------------- 1 file changed, 16 deletions(-) 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;