summaryrefslogtreecommitdiff
path: root/core/include/fxcrt
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-08-05 10:00:59 -0700
committerTom Sepez <tsepez@chromium.org>2015-08-05 10:00:59 -0700
commit5cd398545141226f082b2f757f23c73303058a83 (patch)
tree734e2a0ad7e923ed1c57c076abb8d1070fdc3b2f /core/include/fxcrt
parent7ea305f1bd4efc1838fba053e4399358d6765ec7 (diff)
downloadpdfium-5cd398545141226f082b2f757f23c73303058a83.tar.xz
FPDF_Creator can only create file through embedder-supplied callback.
Hence, some of the routines taking filename strings are unused. This, in turn allows us to get rid of some other fopen-ishy looking things inside the library. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1264423003 .
Diffstat (limited to 'core/include/fxcrt')
-rw-r--r--core/include/fxcrt/fx_basic.h6
-rw-r--r--core/include/fxcrt/fx_stream.h2
2 files changed, 0 insertions, 8 deletions
diff --git a/core/include/fxcrt/fx_basic.h b/core/include/fxcrt/fx_basic.h
index 7181b19942..73b99be549 100644
--- a/core/include/fxcrt/fx_basic.h
+++ b/core/include/fxcrt/fx_basic.h
@@ -164,18 +164,12 @@ class CFX_FileBufferArchive : public IFX_BufferArchive {
~CFX_FileBufferArchive() override;
void Clear() override;
-
FX_BOOL AttachFile(IFX_StreamWrite* pFile, FX_BOOL bTakeover = FALSE);
- FX_BOOL AttachFile(const FX_WCHAR* filename);
-
- FX_BOOL AttachFile(const FX_CHAR* filename);
-
private:
FX_BOOL DoWork(const void* pBuf, size_t size) override;
IFX_StreamWrite* m_pFile;
-
FX_BOOL m_bTakeover;
};
diff --git a/core/include/fxcrt/fx_stream.h b/core/include/fxcrt/fx_stream.h
index 2f3ebdcfce..73ec7e05b2 100644
--- a/core/include/fxcrt/fx_stream.h
+++ b/core/include/fxcrt/fx_stream.h
@@ -78,8 +78,6 @@ class IFX_FileWrite : public IFX_StreamWrite {
return WriteBlock(pData, GetSize(), size);
}
};
-IFX_FileWrite* FX_CreateFileWrite(const FX_CHAR* filename);
-IFX_FileWrite* FX_CreateFileWrite(const FX_WCHAR* filename);
class IFX_StreamRead {
public:
virtual ~IFX_StreamRead() {}