summaryrefslogtreecommitdiff
path: root/core/src/fxcrt
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-02-05 17:39:07 -0800
committerTom Sepez <tsepez@chromium.org>2015-02-05 17:39:07 -0800
commit65b7a0c8dd14a8e648712fba2a5f70988e12d138 (patch)
tree610c472ea08b6629efd298eb42aaaeddae9282ae /core/src/fxcrt
parentc6ab1725213a487838cbe03cb08cb5cac4ad956a (diff)
downloadpdfium-65b7a0c8dd14a8e648712fba2a5f70988e12d138.tar.xz
Merge to XFA: Kill off some more unreachable fopen's.
Original Review URL: https://codereview.chromium.org/902943003 TBR=jam@chromium.org Review URL: https://codereview.chromium.org/895903005
Diffstat (limited to 'core/src/fxcrt')
-rw-r--r--core/src/fxcrt/fx_basic_bstring.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/core/src/fxcrt/fx_basic_bstring.cpp b/core/src/fxcrt/fx_basic_bstring.cpp
index 39104e29f6..5c8a2fa8f3 100644
--- a/core/src/fxcrt/fx_basic_bstring.cpp
+++ b/core/src/fxcrt/fx_basic_bstring.cpp
@@ -936,22 +936,6 @@ void CFX_ByteString::SetAt(FX_STRSIZE nIndex, FX_CHAR ch)
CopyBeforeWrite();
m_pData->m_String[nIndex] = ch;
}
-CFX_ByteString CFX_ByteString::LoadFromFile(FX_BSTR filename)
-{
- FXSYS_FILE* file = FXSYS_fopen(CFX_ByteString(filename), "rb");
- if (file == NULL) {
- return CFX_ByteString();
- }
- FXSYS_fseek(file, 0, FXSYS_SEEK_END);
- int len = FXSYS_ftell(file);
- FXSYS_fseek(file, 0, FXSYS_SEEK_SET);
- CFX_ByteString str;
- FX_LPSTR buf = str.GetBuffer(len);
- FXSYS_fread(buf, 1, len, file);
- str.ReleaseBuffer(len);
- FXSYS_fclose(file);
- return str;
-}
CFX_WideString CFX_ByteString::UTF8Decode() const
{
CFX_UTF8Decoder decoder;