diff options
-rw-r--r-- | core/fxcrt/cfx_seekablestreamproxy.cpp | 6 | ||||
-rw-r--r-- | core/fxcrt/cfx_seekablestreamproxy.h | 1 |
2 files changed, 1 insertions, 6 deletions
diff --git a/core/fxcrt/cfx_seekablestreamproxy.cpp b/core/fxcrt/cfx_seekablestreamproxy.cpp index 44a212d867..d8fe4f4832 100644 --- a/core/fxcrt/cfx_seekablestreamproxy.cpp +++ b/core/fxcrt/cfx_seekablestreamproxy.cpp @@ -167,11 +167,7 @@ CFX_SeekableStreamProxy::CFX_SeekableStreamProxy( Seek(From::Begin, static_cast<FX_FILESIZE>(m_wBOMLength)); } -CFX_SeekableStreamProxy::CFX_SeekableStreamProxy(uint8_t* data, size_t size) - : CFX_SeekableStreamProxy( - pdfium::MakeRetain<CFX_MemoryStream>(data, size, false)) {} - -CFX_SeekableStreamProxy::~CFX_SeekableStreamProxy() {} +CFX_SeekableStreamProxy::~CFX_SeekableStreamProxy() = default; void CFX_SeekableStreamProxy::Seek(From eSeek, FX_FILESIZE iOffset) { switch (eSeek) { diff --git a/core/fxcrt/cfx_seekablestreamproxy.h b/core/fxcrt/cfx_seekablestreamproxy.h index 451f7769c2..5e0eecb87b 100644 --- a/core/fxcrt/cfx_seekablestreamproxy.h +++ b/core/fxcrt/cfx_seekablestreamproxy.h @@ -36,7 +36,6 @@ class CFX_SeekableStreamProxy : public Retainable { private: explicit CFX_SeekableStreamProxy(const RetainPtr<IFX_SeekableStream>& stream); - CFX_SeekableStreamProxy(uint8_t* data, size_t size); ~CFX_SeekableStreamProxy() override; size_t ReadData(uint8_t* pBuffer, size_t iBufferSize); |