mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:43:50 +02:00
dead code cleanup
This commit is contained in:
parent
bb5a432c74
commit
f19477dd63
2 changed files with 2 additions and 22 deletions
|
@ -52,13 +52,9 @@ void VoxelServerPacketProcessor::processPacket(sockaddr& senderAddress, unsigned
|
|||
int green = voxelData[voxelCodeSize + 1];
|
||||
int blue = voxelData[voxelCodeSize + 2];
|
||||
|
||||
printf("insert voxels - r=%d,g=%d,b=%d \n", red, green, blue);
|
||||
}
|
||||
|
||||
if (::shouldShowAnimationDebug) {
|
||||
float* vertices = firstVertexForCode(voxelData);
|
||||
printf("inserting voxel at: %f,%f,%f\n", vertices[0], vertices[1], vertices[2]);
|
||||
delete []vertices;
|
||||
printf("inserting voxel: %f,%f,%f r=%d,g=%d,b=%d\n", vertices[0], vertices[1], vertices[2], red, green, blue);
|
||||
delete[] vertices;
|
||||
}
|
||||
|
||||
serverTree.readCodeColorBufferToTree(voxelData, destructive);
|
||||
|
|
|
@ -60,20 +60,6 @@ VoxelPersistThread* voxelPersistThread = NULL;
|
|||
pthread_mutex_t treeLock;
|
||||
|
||||
|
||||
void eraseVoxelTreeAndCleanupNodeVisitData() {
|
||||
|
||||
// As our tree to erase all it's voxels
|
||||
::serverTree.eraseAllVoxels();
|
||||
// enumerate the nodes clean up their marker nodes
|
||||
for (NodeList::iterator node = NodeList::getInstance()->begin(); node != NodeList::getInstance()->end(); node++) {
|
||||
VoxelNodeData* nodeData = (VoxelNodeData*) node->getLinkedData();
|
||||
if (nodeData) {
|
||||
// clean up the node visit data
|
||||
nodeData->nodeBag.deleteAll();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void handlePacketSend(NodeList* nodeList,
|
||||
NodeList::iterator& node,
|
||||
VoxelNodeData* nodeData,
|
||||
|
@ -111,14 +97,12 @@ void handlePacketSend(NodeList* nodeList,
|
|||
nodeData->resetVoxelPacket();
|
||||
}
|
||||
|
||||
|
||||
// Version of voxel distributor that sends the deepest LOD level at once
|
||||
void deepestLevelVoxelDistributor(NodeList* nodeList,
|
||||
NodeList::iterator& node,
|
||||
VoxelNodeData* nodeData,
|
||||
bool viewFrustumChanged) {
|
||||
|
||||
|
||||
pthread_mutex_lock(&::treeLock);
|
||||
|
||||
int truePacketsSent = 0;
|
||||
|
|
Loading…
Reference in a new issue