From bddc60d0977068fbe89a1dad403f2e6ddd7ff1a1 Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Tue, 17 Apr 2018 18:23:49 +0000 Subject: Remove write abilities from CFX_SeekableStreamProxy This CL removes the abliity to write to the seekable stream proxy class. Change-Id: I0eda2619714df190d326c23dfdcd4527d4312779 Reviewed-on: https://pdfium-review.googlesource.com/30853 Reviewed-by: Tom Sepez Commit-Queue: dsinclair --- core/fxcrt/cfx_seekablestreamproxy.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'core/fxcrt/cfx_seekablestreamproxy.h') diff --git a/core/fxcrt/cfx_seekablestreamproxy.h b/core/fxcrt/cfx_seekablestreamproxy.h index c25ab3c9b6..451f7769c2 100644 --- a/core/fxcrt/cfx_seekablestreamproxy.h +++ b/core/fxcrt/cfx_seekablestreamproxy.h @@ -31,20 +31,16 @@ class CFX_SeekableStreamProxy : public Retainable { void Seek(From eSeek, FX_FILESIZE iOffset); size_t ReadString(wchar_t* pStr, size_t iMaxLength, bool* bEOS); - void WriteString(const WideStringView& str); - uint16_t GetCodePage() const { return m_wCodePage; } void SetCodePage(uint16_t wCodePage); private: - CFX_SeekableStreamProxy(const RetainPtr& stream, - bool isWriteSteam); + explicit CFX_SeekableStreamProxy(const RetainPtr& stream); CFX_SeekableStreamProxy(uint8_t* data, size_t size); ~CFX_SeekableStreamProxy() override; size_t ReadData(uint8_t* pBuffer, size_t iBufferSize); - bool m_IsWriteStream; uint16_t m_wCodePage; size_t m_wBOMLength; FX_FILESIZE m_iPosition; -- cgit v1.2.3