summaryrefslogtreecommitdiff
path: root/src/lib/text_content.cc
diff options
context:
space:
mode:
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 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)));