From 7b7d897e3ba2232a7fc6dbbd6f994dbe53ae1aeb Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Thu, 12 Jan 2017 12:29:15 -0800 Subject: [PATCH] explicitly mark dead code --- .../Importers/ImportMJCFDemo/ImportMJCFSetup.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/examples/Importers/ImportMJCFDemo/ImportMJCFSetup.cpp b/examples/Importers/ImportMJCFDemo/ImportMJCFSetup.cpp index eb62a2826..3840b5c87 100644 --- a/examples/Importers/ImportMJCFDemo/ImportMJCFSetup.cpp +++ b/examples/Importers/ImportMJCFDemo/ImportMJCFSetup.cpp @@ -238,11 +238,13 @@ void ImportMJCFSetup::initPhysics() ConvertURDF2Bullet(importer,creation, rootTrans,m_dynamicsWorld,m_useMultiBody,importer.getPathPrefix(),CUF_USE_MJCF); mb = creation.getBulletMultiBody(); - if (0)//mb) - { - printf("first MJCF file converted!\n"); - std::string* name = new std::string(importer.getLinkName(importer.getRootLinkIndex())); - m_nameMemory.push_back(name); + if (/* DISABLES CODE */ (0)) // mb) + { + printf("first MJCF file converted!\n"); + std::string* name = + new std::string(importer.getLinkName( + importer.getRootLinkIndex())); + m_nameMemory.push_back(name); #ifdef TEST_MULTIBODY_SERIALIZATION s->registerNameForPointer(name->c_str(),name->c_str()); #endif//TEST_MULTIBODY_SERIALIZATION