From 4d1aa56193fb9355072b9732144f5d6d09b1af7c Mon Sep 17 00:00:00 2001 From: yangxiao Date: Tue, 16 Jun 2015 11:15:39 +0800 Subject: [PATCH] remove unused code, and use nullptr for pointer --- cocos/navmesh/CCNavMesh.cpp | 1 - cocos/navmesh/CCNavMeshUtils.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cocos/navmesh/CCNavMesh.cpp b/cocos/navmesh/CCNavMesh.cpp index 966b5bb803..7aef89301e 100644 --- a/cocos/navmesh/CCNavMesh.cpp +++ b/cocos/navmesh/CCNavMesh.cpp @@ -485,7 +485,6 @@ void cocos2d::NavMesh::findPath(const Vec3 &start, const Vec3 &end, std::vector< { static const int MAX_POLYS = 256; static const int MAX_SMOOTH = 2048; - int pathIterNum = 0; float ext[3]; ext[0] = 2; ext[1] = 4; ext[2] = 2; dtQueryFilter filter; diff --git a/cocos/navmesh/CCNavMeshUtils.cpp b/cocos/navmesh/CCNavMeshUtils.cpp index 1831e5d062..b332c9b91e 100644 --- a/cocos/navmesh/CCNavMeshUtils.cpp +++ b/cocos/navmesh/CCNavMeshUtils.cpp @@ -31,7 +31,7 @@ NS_CC_BEGIN LinearAllocator::LinearAllocator(const int cap) -: buffer(0) +: buffer(nullptr) , capacity(0) , top(0) , high(0)