summaryrefslogtreecommitdiff
path: root/src/lib/text_content.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-05-09 22:07:51 +0200
committerCarl Hetherington <cth@carlh.net>2021-05-09 22:07:51 +0200
commitb50a098f422cdb671a67ccb41e2837aa505e405b (patch)
treeb903e7e82257a2d8fba0ca0b1ea2ea610190e299 /src/lib/text_content.cc
parent21702cc5f4b0e6fc7114f9fffb118246fbfda2e2 (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.
Diffstat (limited to 'src/lib/text_content.cc')
-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 4ba2de348..5ae8dd45e 100644
--- a/src/lib/text_content.cc
+++ b/src/lib/text_content.cc
@@ -104,10 +104,6 @@ TextContent::from_xml (Content* parent, cxml::ConstNodePtr node, int version)
return { make_shared<TextContent>(parent, node, version) };
}
- if (!node->optional_node_child("Text")) {
- return {};
- }
-
list<shared_ptr<TextContent>> c;
for (auto i: node->node_children("Text")) {
c.push_back (make_shared<TextContent>(parent, i, version));