From c3aa483e132526e5f5d150058fcdef9450ba3498 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 15 May 2018 20:22:45 +0000 Subject: 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 Commit-Queue: dsinclair --- xfa/fgas/layout/cfx_breakline.cpp | 10 ---------- xfa/fgas/layout/cfx_breakline.h | 3 --- 2 files changed, 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(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(); -- cgit v1.2.3