diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-02-07 17:10:22 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-02-07 17:10:22 +0000 |
commit | c0c32b0a3af11624a1f3eaeb9d940d525b54cd4d (patch) | |
tree | 327d1df5334ac3893d5714ca023ab2d81b0ff151 /xfa/fxfa/parser/cxfa_arraynodelist.cpp | |
parent | b3a3eaab0471ed4fe22299c02b51b16bec813773 (diff) | |
download | pdfium-c0c32b0a3af11624a1f3eaeb9d940d525b54cd4d.tar.xz |
Remove unused return values from CXFA_Node
This CL removes the unused return values from InsertChild and
RemoveChild methods in CXFA_Node.
Bug: chromium:807863
Change-Id: Iac468afc5c48f51e7df3ea12d11b128a0ac124ea
Reviewed-on: https://pdfium-review.googlesource.com/25670
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_arraynodelist.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_arraynodelist.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/xfa/fxfa/parser/cxfa_arraynodelist.cpp b/xfa/fxfa/parser/cxfa_arraynodelist.cpp index 9eaf9a6c33..8bb200e1b2 100644 --- a/xfa/fxfa/parser/cxfa_arraynodelist.cpp +++ b/xfa/fxfa/parser/cxfa_arraynodelist.cpp @@ -25,12 +25,11 @@ size_t CXFA_ArrayNodeList::GetLength() { return m_array.size(); } -bool CXFA_ArrayNodeList::Append(CXFA_Node* pNode) { +void CXFA_ArrayNodeList::Append(CXFA_Node* pNode) { m_array.push_back(pNode); - return true; } -bool CXFA_ArrayNodeList::Insert(CXFA_Node* pNewNode, CXFA_Node* pBeforeNode) { +void CXFA_ArrayNodeList::Insert(CXFA_Node* pNewNode, CXFA_Node* pBeforeNode) { if (!pBeforeNode) { m_array.push_back(pNewNode); } else { @@ -38,14 +37,12 @@ bool CXFA_ArrayNodeList::Insert(CXFA_Node* pNewNode, CXFA_Node* pBeforeNode) { if (it != m_array.end()) m_array.insert(it, pNewNode); } - return true; } -bool CXFA_ArrayNodeList::Remove(CXFA_Node* pNode) { +void CXFA_ArrayNodeList::Remove(CXFA_Node* pNode) { auto it = std::find(m_array.begin(), m_array.end(), pNode); if (it != m_array.end()) m_array.erase(it); - return true; } CXFA_Node* CXFA_ArrayNodeList::Item(size_t index) { |