From 343d1628e47232c34ac90c9084a05c44923ca91b Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Tue, 17 Feb 2015 21:50:48 +0100 Subject: Remove debug information --- src/core/parser/stack/DocumentHandler.cpp | 43 ------------------------------- 1 file changed, 43 deletions(-) (limited to 'src/core/parser/stack/DocumentHandler.cpp') diff --git a/src/core/parser/stack/DocumentHandler.cpp b/src/core/parser/stack/DocumentHandler.cpp index e928a54..35146b1 100644 --- a/src/core/parser/stack/DocumentHandler.cpp +++ b/src/core/parser/stack/DocumentHandler.cpp @@ -82,9 +82,6 @@ void DocumentChildHandler::createPath(const NodeVector &path, Rooted field{new DocumentField( manager(), scope().getLeaf(), parent->getDescriptor()->getFieldDescriptorIndex(), true)}; - // TODO: REMOVE - logger().debug(std::string("push transparent field createPath() "), - location()); scope().push(field); // add the transparent/implicit structure element. Rooted transparent = @@ -93,10 +90,6 @@ void DocumentChildHandler::createPath(const NodeVector &path, path[p - 1]->getName(), ""); transparent->setLocation(location()); transparent->setTransparent(true); - // TODO: REMOVE - logger().debug(std::string("push transparent createPath() ") + - transparent->getDescriptor()->getName(), - location()); scope().push(transparent); parent = static_cast(transparent.get()); } @@ -104,9 +97,6 @@ void DocumentChildHandler::createPath(const NodeVector &path, Rooted field{new DocumentField( manager(), scope().getLeaf(), parent->getDescriptor()->getFieldDescriptorIndex(), true)}; - // TODO: REMOVE - logger().debug(std::string("push transparent field createPath() "), - location()); scope().push(field); } @@ -119,10 +109,6 @@ void DocumentChildHandler::createPath(const size_t &firstFieldIdx, path[0].cast(), firstFieldIdx); transparent->setLocation(location()); transparent->setTransparent(true); - // TODO: REMOVE - logger().debug(std::string("push transparent createPath() ") + - transparent->getDescriptor()->getName(), - location()); scope().push(transparent); parent = static_cast(transparent.get()); @@ -187,9 +173,6 @@ bool DocumentChildHandler::start(Variant::mapType &args) Rooted field{new DocumentField( manager(), parentNode, newFieldIdx, false)}; field->setLocation(location()); - // TODO: REMOVE - logger().debug(std::string("push explicit field start() "), - location()); scope().push(field); isExplicitField = true; return true; @@ -217,12 +200,8 @@ bool DocumentChildHandler::start(Variant::mapType &args) // if we have transparent elements above us in the structure // tree we try to unwind them before we give up. // pop the implicit field. - //TODO: REMOVE - logger().debug("pop start() rollback", location()); scope().pop(); // pop the implicit element. - //TODO: REMOVE - logger().debug("pop start() rollback", location()); scope().pop(); continue; } @@ -245,10 +224,6 @@ bool DocumentChildHandler::start(Variant::mapType &args) args, nameAttr); } entity->setLocation(location()); - // TODO: REMOVE - logger().debug( - std::string("push start() ") + entity->getDescriptor()->getName(), - location()); scope().push(entity); return true; } @@ -262,8 +237,6 @@ void DocumentChildHandler::end() return; } // pop the "main" element. - // TODO: REMOVE - logger().debug("pop end()", location()); scope().pop(); } @@ -297,10 +270,6 @@ bool DocumentChildHandler::fieldStart(bool &isDefault, size_t fieldIdx) Rooted field{ new DocumentField(manager(), parentNode, fieldIdx, false)}; field->setLocation(location()); - // TODO: REMOVE - logger().debug( - std::string("push fieldStart() ") + fields[fieldIdx]->getName(), - location()); scope().push(field); return true; } @@ -310,25 +279,13 @@ void DocumentChildHandler::fieldEnd() assert(scope().getLeaf()->isa(&RttiTypes::DocumentField)); // pop the field from the stack. - // TODO: REMOVE - logger().debug("pop fieldEnd() ", location()); scope().pop(); // pop all remaining transparent elements. while (scope().getLeaf()->isa(&RttiTypes::StructuredEntity) && scope().getLeaf().cast()->isTransparent()) { - // TODO: REMOVE - logger().debug(std::string("pop transparent fieldEnd() ") + - scope() - .getLeaf() - .cast() - ->getDescriptor() - ->getName(), - location()); // pop the transparent element. scope().pop(); - // TODO: REMOVE - logger().debug("pop transparent fieldEnd() ", location()); // pop the transparent field. scope().pop(); } -- cgit v1.2.3