summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_simple_parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/parser/cxfa_simple_parser.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_simple_parser.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/xfa/fxfa/parser/cxfa_simple_parser.cpp b/xfa/fxfa/parser/cxfa_simple_parser.cpp
index eee5cb3d83..42498695e9 100644
--- a/xfa/fxfa/parser/cxfa_simple_parser.cpp
+++ b/xfa/fxfa/parser/cxfa_simple_parser.cpp
@@ -101,8 +101,7 @@ const PacketInfo* GetPacketByName(const WideStringView& wsName) {
return nullptr;
}
-CFX_XMLNode* GetDocumentNode(CFX_XMLDoc* pXMLDoc,
- bool bVerifyWellFormness = false) {
+CFX_XMLNode* GetDocumentNode(CFX_XMLDoc* pXMLDoc) {
if (!pXMLDoc)
return nullptr;
@@ -111,14 +110,6 @@ CFX_XMLNode* GetDocumentNode(CFX_XMLDoc* pXMLDoc,
if (pXMLNode->GetType() != FX_XMLNODE_Element)
continue;
- if (!bVerifyWellFormness)
- return pXMLNode;
-
- for (CFX_XMLNode* pNextNode = pXMLNode->GetNextSibling(); pNextNode;
- pNextNode = pNextNode->GetNextSibling()) {
- if (pNextNode->GetType() == FX_XMLNODE_Element)
- return nullptr;
- }
return pXMLNode;
}
return nullptr;