summaryrefslogtreecommitdiff
path: root/xfa/fgas/layout/cfx_breakline.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-05-15 19:50:45 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-15 19:50:45 +0000
commit22b448a7859d21b63172a69a66bf0ef25d3cdeb6 (patch)
tree131941ee19b44614e0c407ff2357425490bd0ee1 /xfa/fgas/layout/cfx_breakline.cpp
parent16e9ecf374e22a8ab9b4de2dfa87b048ae37dcbe (diff)
downloadpdfium-22b448a7859d21b63172a69a66bf0ef25d3cdeb6.tar.xz
Remove CFX_BreakLine::CountChars
The CFX_BreakLine::CountChars is a thin wrapper around getting the size of the m_LineChars vector. This CL removes CountChars and uses the vectory directly. Change-Id: I6b172c090aa7acf3282df517a8ae2bbdd55ff15b Reviewed-on: https://pdfium-review.googlesource.com/32590 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.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/xfa/fgas/layout/cfx_breakline.cpp b/xfa/fgas/layout/cfx_breakline.cpp
index 0788603ad0..90bf7a08da 100644
--- a/xfa/fgas/layout/cfx_breakline.cpp
+++ b/xfa/fgas/layout/cfx_breakline.cpp
@@ -12,10 +12,6 @@ CFX_BreakLine::CFX_BreakLine() : m_iStart(0), m_iWidth(0), m_iArabicChars(0) {}
CFX_BreakLine::~CFX_BreakLine() {}
-int32_t CFX_BreakLine::CountChars() const {
- return pdfium::CollectionSize<int32_t>(m_LineChars);
-}
-
CFX_Char* CFX_BreakLine::GetChar(int32_t index) {
ASSERT(pdfium::IndexInBounds(m_LineChars, index));
return &m_LineChars[index];