From e7767a0c98548395c95b9f88fc30cf7b318f1939 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 5 Sep 2017 12:02:57 -0400 Subject: Cleanup CFX_WordBreak Remove unused GetWord, make methods only used in the class private. Change-Id: Ia5b63da7f9dc3a918380742213d98f9d1b3651a3 Reviewed-on: https://pdfium-review.googlesource.com/13092 Reviewed-by: Ryan Harrison Reviewed-by: Henrique Nakashima Commit-Queue: dsinclair --- core/fxcrt/cfx_wordbreak.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'core/fxcrt/cfx_wordbreak.cpp') diff --git a/core/fxcrt/cfx_wordbreak.cpp b/core/fxcrt/cfx_wordbreak.cpp index 975dd113c1..1ce85fc0da 100644 --- a/core/fxcrt/cfx_wordbreak.cpp +++ b/core/fxcrt/cfx_wordbreak.cpp @@ -2827,22 +2827,6 @@ int32_t CFX_WordBreak::GetWordLength() const { return m_pCurIter->GetAt() - m_pPreIter->GetAt() + 1; } -void CFX_WordBreak::GetWord(CFX_WideString& wsWord) const { - int32_t nWordLength = GetWordLength(); - if (nWordLength <= 0) { - return; - } - wchar_t* lpBuf = wsWord.GetBuffer(nWordLength); - std::unique_ptr pTempIter = m_pPreIter->Clone(); - int32_t i = 0; - while (pTempIter->GetAt() <= m_pCurIter->GetAt()) { - lpBuf[i++] = pTempIter->GetChar(); - if (!pTempIter->Next()) - break; - } - wsWord.ReleaseBuffer(nWordLength); -} - bool CFX_WordBreak::IsEOF(bool bTail) const { return m_pCurIter->IsEOF(bTail); } -- cgit v1.2.3