From c379431be338c79e961879873666f5bf84985188 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 28 Apr 2011 10:23:50 +0000 Subject: [PATCH] Fixed Coverity reported issue. CID 11403: Logically dead code (DEADCODE) After this line, the value of "needspace" is equal to 0. Assigning: "needspace" = "false". Technically the report is correct, but the code is just debugging code that was there just in case the code needed to be reviewed. This code is long since through it's debugging stage so the code is no longer really worth keeping so I've removed it for cleanness sake. --- src/osg/ApplicationUsage.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/osg/ApplicationUsage.cpp b/src/osg/ApplicationUsage.cpp index 60afa0f6a..25dfbdf69 100644 --- a/src/osg/ApplicationUsage.cpp +++ b/src/osg/ApplicationUsage.cpp @@ -232,7 +232,6 @@ void ApplicationUsage::write(std::ostream& output, unsigned int type, unsigned i bool needspace = false; if ((type&COMMAND_LINE_OPTION) && !getCommandLineOptions().empty()) { - if (needspace) output << std::endl; output << "Options"; if (showDefaults) output << " [and default value]"; output << ":"<