summaryrefslogtreecommitdiff
path: root/xfa/fgas/layout/cfx_breakline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fgas/layout/cfx_breakline.cpp')
-rw-r--r--xfa/fgas/layout/cfx_breakline.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/xfa/fgas/layout/cfx_breakline.cpp b/xfa/fgas/layout/cfx_breakline.cpp
index 90bf7a08da..1a8ae45247 100644
--- a/xfa/fgas/layout/cfx_breakline.cpp
+++ b/xfa/fgas/layout/cfx_breakline.cpp
@@ -22,12 +22,8 @@ const CFX_Char* CFX_BreakLine::GetChar(int32_t index) const {
return &m_LineChars[index];
}
-int32_t CFX_BreakLine::CountPieces() const {
- return pdfium::CollectionSize<int32_t>(m_LinePieces);
-}
-
const CFX_BreakPiece* CFX_BreakLine::GetPiece(int32_t index) const {
- ASSERT(index >= 0 && index < CountPieces());
+ ASSERT(index >= 0 && index < pdfium::CollectionSize<int32_t>(m_LinePieces));
return &m_LinePieces[index];
}