From 0b2bf8bda8725f445b8fc59e90862d542c424e19 Mon Sep 17 00:00:00 2001 From: Brad Hefta-Gaub Date: Mon, 19 Oct 2015 15:23:45 -0700 Subject: [PATCH] remove some dead code --- interface/src/LODManager.cpp | 11 +---------- libraries/render/src/render/DrawTask.h | 9 --------- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/interface/src/LODManager.cpp b/interface/src/LODManager.cpp index 0d2681ac72..368143e36e 100644 --- a/interface/src/LODManager.cpp +++ b/interface/src/LODManager.cpp @@ -229,8 +229,6 @@ bool LODManager::shouldRender(const RenderArgs* args, const AABox& bounds) { static bool shouldRenderTableNeedsBuilding = true; static QMap shouldRenderTable; if (shouldRenderTableNeedsBuilding) { - qDebug() << "LODManager::shouldRender() rebuilding table!"; - float SMALLEST_SCALE_IN_TABLE = 0.001f; // 1mm is plenty small float scale = maxScale; float factor = 1.0f; @@ -256,14 +254,7 @@ bool LODManager::shouldRender(const RenderArgs* args, const AABox& bounds) { visibleDistanceAtClosestScale *= 2.0f; } - bool result = distanceToCamera <= visibleDistanceAtClosestScale; - - /* - qDebug() << "LODManager::shouldRender() bounds:" << bounds << "result:" << result - << "distanceToCamera:" << distanceToCamera << "visibleDistanceAtClosestScale:" << visibleDistanceAtClosestScale; - */ - - return result; + return distanceToCamera <= visibleDistanceAtClosestScale; }; // TODO: This is essentially the same logic used to render octree cells, but since models are more detailed then octree cells diff --git a/libraries/render/src/render/DrawTask.h b/libraries/render/src/render/DrawTask.h index 1db666a512..ed51273f88 100755 --- a/libraries/render/src/render/DrawTask.h +++ b/libraries/render/src/render/DrawTask.h @@ -230,27 +230,18 @@ public: class CullItems { public: - CullItems() { - qDebug() << "CullItems() created... "; - } void run(const SceneContextPointer& sceneContext, const RenderContextPointer& renderContext, const ItemIDsBounds& inItems, ItemIDsBounds& outItems); typedef Job::ModelIO JobModel; }; class CullItemsOpaque { public: - CullItemsOpaque() { - qDebug() << "CullItemsOpaque() created... "; - } void run(const SceneContextPointer& sceneContext, const RenderContextPointer& renderContext, const ItemIDsBounds& inItems, ItemIDsBounds& outItems); typedef Job::ModelIO JobModel; }; class CullItemsTransparent { public: - CullItemsTransparent() { - qDebug() << "CullItemsTransparent() created... "; - } void run(const SceneContextPointer& sceneContext, const RenderContextPointer& renderContext, const ItemIDsBounds& inItems, ItemIDsBounds& outItems); typedef Job::ModelIO JobModel; };