From 09a9b1f5579f6e8ed6cb71678731e9477615ac0d Mon Sep 17 00:00:00 2001 From: "Huabing.Xu" Date: Wed, 11 Dec 2013 13:41:05 +0800 Subject: [PATCH] remove setGrid getGrid in class Node --- cocos/2d/CCNode.cpp | 12 ++++++------ cocos/2d/CCNode.h | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/cocos/2d/CCNode.cpp b/cocos/2d/CCNode.cpp index aafec6fd47..ad2a7730d7 100644 --- a/cocos/2d/CCNode.cpp +++ b/cocos/2d/CCNode.cpp @@ -412,12 +412,12 @@ Camera* Node::getCamera() } /// grid setter -void Node::setGrid(GridBase* pGrid) -{ - CC_SAFE_RETAIN(pGrid); - CC_SAFE_RELEASE(_grid); - _grid = pGrid; -} +// void Node::setGrid(GridBase* pGrid) +// { +// CC_SAFE_RETAIN(pGrid); +// CC_SAFE_RELEASE(_grid); +// _grid = pGrid; +// } /// isVisible getter diff --git a/cocos/2d/CCNode.h b/cocos/2d/CCNode.h index 8a82c1bfa3..c82e7647c8 100644 --- a/cocos/2d/CCNode.h +++ b/cocos/2d/CCNode.h @@ -714,18 +714,18 @@ public: * @return A Grid object that is used when applying effects * @js NA */ - virtual GridBase* getGrid() { return _grid; } + //virtual GridBase* getGrid() { return _grid; } /** * @js NA */ - virtual const GridBase* getGrid() const { return _grid; } + //virtual const GridBase* getGrid() const { return _grid; } /** * Changes a grid object that is used when applying effects * * @param grid A Grid object that is used when applying effects */ - virtual void setGrid(GridBase *grid); + //virtual void setGrid(GridBase *grid); /// @} end of Grid