summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-05-09 22:07:51 +0200
committerCarl Hetherington <cth@carlh.net>2021-10-27 15:25:42 +0200
commit0f08ac5d4bce1c3b9091fae22d3ae223cf7ecf43 (patch)
treec06f31e219254aec19beae8f104eff4b5686f2f6
parentaf98c4c415eb8093a85d60c4ce38c806ab188fe9 (diff)
Remove erroneous call to optional_node_child().
Just after this we loop over all <Text> nodes, and optional_node_child will raise an exception if there is more than one.
-rw-r--r--src/lib/text_content.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lib/text_content.cc b/src/lib/text_content.cc
index 772ed31f5..d000f8372 100644
--- a/src/lib/text_content.cc
+++ b/src/lib/text_content.cc
@@ -100,10 +100,6 @@ TextContent::from_xml (Content* parent, cxml::ConstNodePtr node, int version)
return c;
}
- if (!node->optional_node_child("Text")) {
- return list<shared_ptr<TextContent> >();
- }
-
list<shared_ptr<TextContent> > c;
BOOST_FOREACH (cxml::ConstNodePtr i, node->node_children("Text")) {
c.push_back (shared_ptr<TextContent> (new TextContent (parent, i, version)));