summaryrefslogtreecommitdiff
path: root/xfa
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-04-17 22:47:08 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-17 22:47:08 +0000
commit11e5882fbb03bec43956ae0ea4a2a5d9593ccb34 (patch)
tree115ce1014ca73102ef14bb18a557ba2dea03783b /xfa
parentc58b08b8840793af07c78362dce0c7f341de589f (diff)
downloadpdfium-11e5882fbb03bec43956ae0ea4a2a5d9593ccb34.tar.xz
XFA_XPDPacket_MergeRootNode is dead code, too.
Change-Id: I8a842bbd770ce8ae740d4bad8fba00ce6a5801c9 Reviewed-on: https://pdfium-review.googlesource.com/30874 Commit-Queue: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa')
-rw-r--r--xfa/fxfa/cxfa_ffdoc.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/xfa/fxfa/cxfa_ffdoc.cpp b/xfa/fxfa/cxfa_ffdoc.cpp
index 828fb58820..31e9e3df76 100644
--- a/xfa/fxfa/cxfa_ffdoc.cpp
+++ b/xfa/fxfa/cxfa_ffdoc.cpp
@@ -68,23 +68,6 @@ bool CXFA_FFDoc::ParseDoc(CPDF_Object* pElementXFA) {
return true;
}
-void XFA_XPDPacket_MergeRootNode(CXFA_Node* pOriginRoot, CXFA_Node* pNewRoot) {
- CXFA_Node* pChildNode = pNewRoot->GetFirstChild();
- while (pChildNode) {
- CXFA_Node* pOriginChild =
- pOriginRoot->GetFirstChildByName(pChildNode->GetNameHash());
- if (pOriginChild) {
- pChildNode = pChildNode->GetNextSibling();
- } else {
- CXFA_Node* pNextSibling = pChildNode->GetNextSibling();
- pNewRoot->RemoveChild(pChildNode, true);
- pOriginRoot->InsertChild(pChildNode, nullptr);
- pChildNode = pNextSibling;
- pNextSibling = nullptr;
- }
- }
-}
-
CXFA_FFDocView* CXFA_FFDoc::CreateDocView() {
if (!m_DocView)
m_DocView = pdfium::MakeUnique<CXFA_FFDocView>(this);