From 884b33e78f8f12e143a0ebef725cb6a4b784ce43 Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Tue, 17 Apr 2018 18:46:19 +0000 Subject: Remove unused CFX_SeekableStreamProxy constructor This CL removes the CFX_SeekableStreamProxy constructor which accepts a data pointer as it is unused. Change-Id: I1340ebdf1f85ab1dd6c7cd1b5fdebe796c07115e Reviewed-on: https://pdfium-review.googlesource.com/30858 Reviewed-by: Tom Sepez Commit-Queue: dsinclair --- core/fxcrt/cfx_seekablestreamproxy.cpp | 6 +----- core/fxcrt/cfx_seekablestreamproxy.h | 1 - 2 files changed, 1 insertion(+), 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(m_wBOMLength)); } -CFX_SeekableStreamProxy::CFX_SeekableStreamProxy(uint8_t* data, size_t size) - : CFX_SeekableStreamProxy( - pdfium::MakeRetain(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& stream); - CFX_SeekableStreamProxy(uint8_t* data, size_t size); ~CFX_SeekableStreamProxy() override; size_t ReadData(uint8_t* pBuffer, size_t iBufferSize); -- cgit v1.2.3