From 0c820a2c5e2c197c0f436f2ac9e4f49207a79c4f Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 10 Apr 2017 17:29:09 -0400 Subject: Remove unused CreateTextStream MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This CL removes the CreateTextStream method as it is not called. Change-Id: I628aec2e8f488ad549b3497344ac08c5bb24de51 Reviewed-on: https://pdfium-review.googlesource.com/4014 Commit-Queue: dsinclair Reviewed-by: Nicolás Peña --- xfa/fgas/crt/ifgas_stream.cpp | 7 ------- xfa/fgas/crt/ifgas_stream.h | 2 -- 2 files changed, 9 deletions(-) diff --git a/xfa/fgas/crt/ifgas_stream.cpp b/xfa/fgas/crt/ifgas_stream.cpp index ae479964d0..209532476d 100644 --- a/xfa/fgas/crt/ifgas_stream.cpp +++ b/xfa/fgas/crt/ifgas_stream.cpp @@ -1409,13 +1409,6 @@ CFX_RetainPtr IFGAS_Stream::CreateStream(uint8_t* pData, return pSR; } -// static -CFX_RetainPtr IFGAS_Stream::CreateTextStream( - const CFX_RetainPtr& pBaseStream) { - ASSERT(pBaseStream); - return pdfium::MakeRetain(pBaseStream); -} - // static CFX_RetainPtr IFGAS_Stream::MakeSeekableReadStream() { return CFGAS_FileRead::Create(CFX_RetainPtr(this)); diff --git a/xfa/fgas/crt/ifgas_stream.h b/xfa/fgas/crt/ifgas_stream.h index d3b3ef545c..01a148019f 100644 --- a/xfa/fgas/crt/ifgas_stream.h +++ b/xfa/fgas/crt/ifgas_stream.h @@ -38,8 +38,6 @@ class IFGAS_Stream : public CFX_Retainable { static CFX_RetainPtr CreateStream(uint8_t* pData, int32_t length, uint32_t dwAccess); - static CFX_RetainPtr CreateTextStream( - const CFX_RetainPtr& pBaseStream); virtual uint32_t GetAccessModes() const = 0; virtual int32_t GetLength() const = 0; -- cgit v1.2.3