From 1788d19260c88e29b8336fb9f4519395e0c384ea Mon Sep 17 00:00:00 2001 From: Andrew Meadows Date: Tue, 20 Dec 2016 14:00:25 -0800 Subject: [PATCH] remove some debug code --- interface/src/Application.cpp | 20 +++++--------------- interface/src/avatar/Avatar.cpp | 2 -- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 5ca2e1bc7f..691c5051b1 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -570,26 +570,16 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo const QString TEST_SCRIPT = "--testScript"; const QString TRACE_FILE = "--traceFile"; const QStringList args = arguments(); - std::cout << "adebug args.size() = " << args.size() << std::endl; // adebug - for (int i = 0; i < args.size(); ++i) { - std::cout << i << " adebug '" << args.at(i).toStdString() << std::endl; // adebug + for (int i = 0; i < args.size() - 1; ++i) { if (args.at(i) == TEST_SCRIPT) { QString testScriptPath = args.at(i + 1); - std::cout << "adebug given test script '" << testScriptPath.toStdString() << "'" << std::endl; // adebug if (QFileInfo(testScriptPath).exists()) { setProperty(hifi::properties::TEST, QUrl::fromLocalFile(testScriptPath)); - std::cout << "adebug found test script '" << testScriptPath.toStdString() << "'" << std::endl; // adebug - ++i; - } else { - std::cout << "adebug did NOT find test script '" << testScriptPath.toStdString() << "'" << std::endl; // adebug - } - } else { - std::cout << "adebug test script not specified'" << std::endl; // adebug - if (args.at(i) == TRACE_FILE) { - QString traceFilePath = args.at(i + 1); - setProperty(hifi::properties::TRACING, traceFilePath); - DependencyManager::get()->startTracing(); } + } else if (args.at(i) == TRACE_FILE) { + QString traceFilePath = args.at(i + 1); + setProperty(hifi::properties::TRACING, traceFilePath); + DependencyManager::get()->startTracing(); } } } diff --git a/interface/src/avatar/Avatar.cpp b/interface/src/avatar/Avatar.cpp index 37840436fb..43ba8060f5 100644 --- a/interface/src/avatar/Avatar.cpp +++ b/interface/src/avatar/Avatar.cpp @@ -643,7 +643,6 @@ glm::quat Avatar::computeRotationFromBodyToWorldUp(float proportion) const { } void Avatar::fixupModelsInScene() { -#ifdef FOO // adebug _attachmentsToDelete.clear(); // check to see if when we added our models to the scene they were ready, if they were not ready, then @@ -667,7 +666,6 @@ void Avatar::fixupModelsInScene() { _attachmentsToDelete.insert(_attachmentsToDelete.end(), _attachmentsToRemove.begin(), _attachmentsToRemove.end()); _attachmentsToRemove.clear(); scene->enqueuePendingChanges(pendingChanges); -#endif // adebug } bool Avatar::shouldRenderHead(const RenderArgs* renderArgs) const {