diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-05-15 20:22:45 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-15 20:22:45 +0000 |
commit | c3aa483e132526e5f5d150058fcdef9450ba3498 (patch) | |
tree | 03a252f2e82705e51b36d4c388a837a676d856f0 /xfa/fgas/layout | |
parent | c8fd054f5fd405542a84b6d489a038889fa2ec22 (diff) | |
download | pdfium-c3aa483e132526e5f5d150058fcdef9450ba3498.tar.xz |
Remove unused methods from CFX_BreakLine
Remove the unused GetChar method and GetPiece method from CFX_BreakLine.
Change-Id: Ieee8e7b20513b37537d304e2bff46f0d1629576c
Reviewed-on: https://pdfium-review.googlesource.com/32592
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fgas/layout')
-rw-r--r-- | xfa/fgas/layout/cfx_breakline.cpp | 10 | ||||
-rw-r--r-- | xfa/fgas/layout/cfx_breakline.h | 3 |
2 files changed, 0 insertions, 13 deletions
diff --git a/xfa/fgas/layout/cfx_breakline.cpp b/xfa/fgas/layout/cfx_breakline.cpp index 1a8ae45247..82e12d8965 100644 --- a/xfa/fgas/layout/cfx_breakline.cpp +++ b/xfa/fgas/layout/cfx_breakline.cpp @@ -17,16 +17,6 @@ CFX_Char* CFX_BreakLine::GetChar(int32_t index) { return &m_LineChars[index]; } -const CFX_Char* CFX_BreakLine::GetChar(int32_t index) const { - ASSERT(pdfium::IndexInBounds(m_LineChars, index)); - return &m_LineChars[index]; -} - -const CFX_BreakPiece* CFX_BreakLine::GetPiece(int32_t index) const { - ASSERT(index >= 0 && index < pdfium::CollectionSize<int32_t>(m_LinePieces)); - return &m_LinePieces[index]; -} - int32_t CFX_BreakLine::GetLineEnd() const { return m_iStart + m_iWidth; } diff --git a/xfa/fgas/layout/cfx_breakline.h b/xfa/fgas/layout/cfx_breakline.h index ad5ac2d103..feed4b7edb 100644 --- a/xfa/fgas/layout/cfx_breakline.h +++ b/xfa/fgas/layout/cfx_breakline.h @@ -18,9 +18,6 @@ class CFX_BreakLine { ~CFX_BreakLine(); CFX_Char* GetChar(int32_t index); - const CFX_Char* GetChar(int32_t index) const; - const CFX_BreakPiece* GetPiece(int32_t index) const; - int32_t GetLineEnd() const; void Clear(); |