summaryrefslogtreecommitdiff
path: root/src/core/parser/stack
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-17 21:50:48 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-17 21:50:48 +0100
commit343d1628e47232c34ac90c9084a05c44923ca91b (patch)
tree0c7d67f1b7a59e40b8ddf4ae901b045b906fb2c8 /src/core/parser/stack
parent5b81eff34f0e8448fe0a3ffb9b82cbadcd78416a (diff)
Remove debug information
Diffstat (limited to 'src/core/parser/stack')
-rw-r--r--src/core/parser/stack/DocumentHandler.cpp43
1 files changed, 0 insertions, 43 deletions
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<Node> &path,
Rooted<DocumentField> 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<StructuredEntity> transparent =
@@ -93,10 +90,6 @@ void DocumentChildHandler::createPath(const NodeVector<Node> &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<DocumentEntity *>(transparent.get());
}
@@ -104,9 +97,6 @@ void DocumentChildHandler::createPath(const NodeVector<Node> &path,
Rooted<DocumentField> 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<StructuredClass>(), 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<DocumentEntity *>(transparent.get());
@@ -187,9 +173,6 @@ bool DocumentChildHandler::start(Variant::mapType &args)
Rooted<DocumentField> 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<DocumentField> 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<StructuredEntity>()->isTransparent()) {
- // TODO: REMOVE
- logger().debug(std::string("pop transparent fieldEnd() ") +
- scope()
- .getLeaf()
- .cast<StructuredEntity>()
- ->getDescriptor()
- ->getName(),
- location());
// pop the transparent element.
scope().pop();
- // TODO: REMOVE
- logger().debug("pop transparent fieldEnd() ", location());
// pop the transparent field.
scope().pop();
}