summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xfa/fgas/layout/cfx_breakline.cpp6
-rw-r--r--xfa/fgas/layout/cfx_breakline.h2
2 files changed, 1 insertions, 7 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];
}
diff --git a/xfa/fgas/layout/cfx_breakline.h b/xfa/fgas/layout/cfx_breakline.h
index 267f276eeb..ad5ac2d103 100644
--- a/xfa/fgas/layout/cfx_breakline.h
+++ b/xfa/fgas/layout/cfx_breakline.h
@@ -19,8 +19,6 @@ class CFX_BreakLine {
CFX_Char* GetChar(int32_t index);
const CFX_Char* GetChar(int32_t index) const;
-
- int32_t CountPieces() const;
const CFX_BreakPiece* GetPiece(int32_t index) const;
int32_t GetLineEnd() const;