Minor cleanups

- remove redundant conditional
 - remove unused vars
 - remove extra ags to printf
 - reduce scope of decl
This commit is contained in:
Andy Maloney 2013-12-04 16:45:09 -05:00
parent 65099897f4
commit 396a7064dc
6 changed files with 5 additions and 8 deletions

View file

@ -288,7 +288,6 @@ void Settings::readLayer(SimXMLDocument *document, String groupStack)
{
for(S32 i=0; document->pushChildElement(i); i++)
{
bool groupCount = 0;
const UTF8 *type = document->elementValue();
const UTF8 *name = document->attribute("name");
const UTF8 *value = document->getText();
@ -302,7 +301,6 @@ void Settings::readLayer(SimXMLDocument *document, String groupStack)
newStack += name;
readLayer(document, newStack);
groupCount++;
} else if(dStrcmp(type, "Setting") == 0)
{
String nameString = groupStack;