summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordan sinclair <dsinclair@chromium.org>2018-04-17 18:46:19 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-17 18:46:19 +0000
commit884b33e78f8f12e143a0ebef725cb6a4b784ce43 (patch)
tree92edfaef5a0d89a04489ff4ea7c5356766496973
parentf0f819de8c6c508e77e06d86f1661aa2933af9e1 (diff)
downloadpdfium-884b33e78f8f12e143a0ebef725cb6a4b784ce43.tar.xz
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 <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
-rw-r--r--core/fxcrt/cfx_seekablestreamproxy.cpp6
-rw-r--r--core/fxcrt/cfx_seekablestreamproxy.h1
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);