issue #3025: Deprecate TextureCache::getInstance() destroyInstance()

This commit is contained in:
Huabing.Xu 2013-11-07 19:10:14 +08:00
parent 99546cef46
commit c8fe6077aa
1 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ class CC_DLL TextureCache : public Object
{
public:
/** Returns the shared instance of the cache */
static TextureCache * getInstance();
CC_DEPRECATED_ATTRIBUTE static TextureCache * getInstance();
/** @deprecated Use getInstance() instead */
CC_DEPRECATED_ATTRIBUTE static TextureCache * sharedTextureCache() { return TextureCache::getInstance(); }
@ -67,7 +67,7 @@ public:
/** purges the cache. It releases the retained instance.
@since v0.99.0
*/
static void destroyInstance();
CC_DEPRECATED_ATTRIBUTE static void destroyInstance();
/** @deprecated Use destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purgeSharedTextureCache() { return TextureCache::destroyInstance(); }