Remove a bunch of debugging printfs and add verbosity levels

This commit is contained in:
Eryn Wells 2014-07-19 16:04:47 -07:00
parent 17df0d4adf
commit 41327c92fd
5 changed files with 46 additions and 44 deletions

View file

@ -41,8 +41,6 @@ ObjectParser::HandleKeyEvent(const std::string& key)
{"radius", RadiusSection}
};
printf("%s: got key = %s", __PRETTY_FUNCTION__, key.c_str());
if (sSections.count(key) > 0) {
mSection = sSections.at(key);
}

View file

@ -29,8 +29,6 @@ void
ScalarMappingParser::HandleEvent(yaml_event_t& event)
{
if (mShouldExpectKey && event.type == YAML_MAPPING_START_EVENT) {
printf("%s: start scalar mapping: tag = %s\n", __PRETTY_FUNCTION__,
event.data.mapping_start.tag);
return;
}
else if (mShouldExpectKey && event.type == YAML_MAPPING_END_EVENT) {

View file

@ -96,11 +96,9 @@ SceneParser::HandleObjectsEvent(yaml_event_t& event)
{
if (event.type == YAML_SEQUENCE_START_EVENT) {
/* Ignore sequence-start for now. */
printf("start objects\n");
return;
}
else if (event.type == YAML_SEQUENCE_END_EVENT) {
printf("end objects\n");
mSection = NoSection;
SetShouldExpectKey(true);
return;
@ -111,7 +109,6 @@ SceneParser::HandleObjectsEvent(yaml_event_t& event)
return;
}
printf("start object\n");
GetParsers().push(new ObjectParser(GetScene(), GetParsers()));
}