From 8acf40d33850cf614f2d162343e3c2c434a16397 Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Sun, 1 Jan 2017 04:19:36 +0100 Subject: [PATCH] Unused parameter --- voxel_map.cpp | 6 +++--- voxel_map.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/voxel_map.cpp b/voxel_map.cpp index a8430ae..8f33aa1 100644 --- a/voxel_map.cpp +++ b/voxel_map.cpp @@ -33,7 +33,7 @@ VoxelBlock::~VoxelBlock() { } // Helper -VoxelBlock * VoxelBlock::create(VoxelMap & map, Vector3i bpos, VoxelBuffer * buffer) { +VoxelBlock * VoxelBlock::create(Vector3i bpos, VoxelBuffer * buffer) { VoxelBlock * block = memnew(VoxelBlock); block->pos = bpos; if (buffer) { @@ -53,7 +53,7 @@ void VoxelMap::set_voxel(int value, Vector3i pos, unsigned int c) { Vector3i bpos = voxel_to_block(pos); VoxelBlock * block = get_block(bpos); if (block == NULL) { - block = VoxelBlock::create(*this, bpos); + block = VoxelBlock::create(bpos); set_block(bpos, block); } block->voxels->set_voxel(value, pos - block_to_voxel(bpos), c); @@ -92,7 +92,7 @@ void VoxelMap::set_block_buffer(Vector3i bpos, Ref buffer) { ERR_FAIL_COND(buffer.is_null()); VoxelBlock * block = get_block(bpos); if (block == NULL) { - block = VoxelBlock::create(*this, bpos, *buffer); + block = VoxelBlock::create(bpos, *buffer); set_block(bpos, block); } else { diff --git a/voxel_map.h b/voxel_map.h index c5c4c0f..ab1d396 100644 --- a/voxel_map.h +++ b/voxel_map.h @@ -22,7 +22,7 @@ public: MeshInstance * get_mesh_instance(const Node & root); - static VoxelBlock * create(VoxelMap & map, Vector3i bpos, VoxelBuffer * buffer = 0); + static VoxelBlock * create(Vector3i bpos, VoxelBuffer * buffer = 0); ~VoxelBlock();