From b3e7bfa6ed35651a22df314352883ccb44a7203d Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 16 Aug 2017 16:37:16 -0400 Subject: Cleanup visibilty and unused methods in xfa/fde This CL fixes the visibility of some methods in xfa/fde along with removing unused methods. Unused params are also removed. Change-Id: Ic6e6d2ac8d07dc4bdabb3e0121831e4bf3fbb8ec Reviewed-on: https://pdfium-review.googlesource.com/11271 Reviewed-by: Henrique Nakashima Commit-Queue: dsinclair --- xfa/fde/cfde_txtedtbuf.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'xfa/fde/cfde_txtedtbuf.h') diff --git a/xfa/fde/cfde_txtedtbuf.h b/xfa/fde/cfde_txtedtbuf.h index 3f1ad28c4f..f6d9ffc8c9 100644 --- a/xfa/fde/cfde_txtedtbuf.h +++ b/xfa/fde/cfde_txtedtbuf.h @@ -42,9 +42,7 @@ class CFDE_TxtEdtBuf { CFDE_TxtEdtBuf(); ~CFDE_TxtEdtBuf(); - int32_t GetChunkSize() const { return m_chunkSize; } int32_t GetTextLength() const { return m_nTotal; } - void SetText(const CFX_WideString& wsText); CFX_WideString GetText() const { return GetRange(0, m_nTotal); } @@ -55,10 +53,10 @@ class CFDE_TxtEdtBuf { void Delete(int32_t nIndex, int32_t nLength); void Clear(bool bRelease); - private: - friend class Iterator; - friend class CFDE_TxtEdtBufTest; + void SetChunkSizeForTesting(size_t size); + size_t GetChunkCountForTesting() const { return m_chunks.size(); } + private: class ChunkHeader { public: ChunkHeader(); @@ -68,11 +66,10 @@ class CFDE_TxtEdtBuf { std::unique_ptr wChars; }; - void SetChunkSizeForTesting(size_t size); std::tuple Index2CP(int32_t nIndex) const; std::unique_ptr NewChunk(); - size_t m_chunkSize; + int32_t m_chunkSize; int32_t m_nTotal; std::vector> m_chunks; }; -- cgit v1.2.3