summaryrefslogtreecommitdiff
path: root/xfa
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2018-01-05 14:43:48 -0500
committerChromium commit bot <commit-bot@chromium.org>2018-01-05 19:57:48 +0000
commita172cfb094fe1012d71d556552977c86f2ae639d (patch)
tree0aa4e672b5a4e5b5678a25093ad87e854f888444 /xfa
parent2a12866a3605f7d5ed2a926ff638e6bb2b60b1d9 (diff)
downloadpdfium-a172cfb094fe1012d71d556552977c86f2ae639d.tar.xz
Remove unused code from CFX_BreakLine
Change-Id: I5b1cdeb53fa791f557cde93074f75e8d18c49f17 Reviewed-on: https://pdfium-review.googlesource.com/22330 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa')
-rw-r--r--xfa/fgas/layout/cfx_breakline.cpp8
-rw-r--r--xfa/fgas/layout/cfx_breakline.h1
2 files changed, 0 insertions, 9 deletions
diff --git a/xfa/fgas/layout/cfx_breakline.cpp b/xfa/fgas/layout/cfx_breakline.cpp
index d3fce06d6f..0788603ad0 100644
--- a/xfa/fgas/layout/cfx_breakline.cpp
+++ b/xfa/fgas/layout/cfx_breakline.cpp
@@ -35,14 +35,6 @@ const CFX_BreakPiece* CFX_BreakLine::GetPiece(int32_t index) const {
return &m_LinePieces[index];
}
-void CFX_BreakLine::GetString(WideString& wsStr) const {
- int32_t iCount = pdfium::CollectionSize<int32_t>(m_LineChars);
- wchar_t* pBuf = wsStr.GetBuffer(iCount);
- for (int32_t i = 0; i < iCount; i++)
- *pBuf++ = static_cast<wchar_t>(m_LineChars[i].char_code());
- wsStr.ReleaseBuffer(iCount);
-}
-
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 8826976517..0b83ee6baa 100644
--- a/xfa/fgas/layout/cfx_breakline.h
+++ b/xfa/fgas/layout/cfx_breakline.h
@@ -24,7 +24,6 @@ class CFX_BreakLine {
int32_t CountPieces() const;
const CFX_BreakPiece* GetPiece(int32_t index) const;
- void GetString(WideString& wsStr) const;
int32_t GetLineEnd() const;
void Clear();