summaryrefslogtreecommitdiff
path: root/xfa/fgas/layout/cfx_breakline.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-05-15 19:53:54 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-15 19:53:54 +0000
commitc8fd054f5fd405542a84b6d489a038889fa2ec22 (patch)
treee79e62347065df6cfd1bb23c7c0c75e4cc29171f /xfa/fgas/layout/cfx_breakline.cpp
parent22b448a7859d21b63172a69a66bf0ef25d3cdeb6 (diff)
downloadpdfium-c8fd054f5fd405542a84b6d489a038889fa2ec22.tar.xz
Remove CFX_BreakLine::CountPieces
This CL inlines the call to pdfium::CollectionSize for the one usage of CFX_BreakLine::CountPieces. Change-Id: I7eb64486c0a84c329d773f6d55ae277604098baf Reviewed-on: https://pdfium-review.googlesource.com/32591 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
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];
}