diff options
author | Lei Zhang <thestig@chromium.org> | 2016-01-08 14:57:48 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2016-01-08 14:57:48 -0800 |
commit | b8e1ab27372cdb5d8c83e57e004032f0d72715db (patch) | |
tree | 718888980718f0b0f5e8d283f91713bdb0712c70 /core/src/fxcrt/fxcrt_windows.cpp | |
parent | 111d8db83ac04d15bd8d879e7dad4651ee8e27e9 (diff) | |
download | pdfium-b8e1ab27372cdb5d8c83e57e004032f0d72715db.tar.xz |
Merge to XFA: Remove a bunch of dead code.
TBR=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1567333003 .
(cherry picked from commit 4a24ad858484ecdf9b49481e63060e4d476cf1c7)
Review URL: https://codereview.chromium.org/1569783007 .
Diffstat (limited to 'core/src/fxcrt/fxcrt_windows.cpp')
-rw-r--r-- | core/src/fxcrt/fxcrt_windows.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/core/src/fxcrt/fxcrt_windows.cpp b/core/src/fxcrt/fxcrt_windows.cpp index aff6a58aea..6f379a127c 100644 --- a/core/src/fxcrt/fxcrt_windows.cpp +++ b/core/src/fxcrt/fxcrt_windows.cpp @@ -9,20 +9,6 @@ #include "core/include/fxcrt/fx_string.h" #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ -FX_BOOL FX_File_Exist(const CFX_ByteStringC& fileName) { - FX_DWORD dwAttri = ::GetFileAttributesA(fileName.GetCStr()); - if (dwAttri == -1) { - return FALSE; - } - return (dwAttri & FILE_ATTRIBUTE_DIRECTORY) == 0; -} -FX_BOOL FX_File_Exist(const CFX_WideStringC& fileName) { - FX_DWORD dwAttri = ::GetFileAttributesW((LPCWSTR)fileName.GetPtr()); - if (dwAttri == -1) { - return FALSE; - } - return (dwAttri & FILE_ATTRIBUTE_DIRECTORY) == 0; -} IFXCRT_FileAccess* FXCRT_FileAccess_Create() { return new CFXCRT_FileAccess_Win64; } @@ -183,28 +169,4 @@ FX_BOOL CFXCRT_FileAccess_Win64::Truncate(FX_FILESIZE szFile) { } return ::SetEndOfFile(m_hFile); } -FX_BOOL FX_File_Delete(const CFX_ByteStringC& fileName) { - return ::DeleteFileA(fileName.GetCStr()); -} -FX_BOOL FX_File_Delete(const CFX_WideStringC& fileName) { - return ::DeleteFileW((LPCWSTR)fileName.GetPtr()); -} -FX_BOOL FX_File_Copy(const CFX_ByteStringC& fileNameSrc, - const CFX_ByteStringC& fileNameDst) { - return ::CopyFileA(fileNameSrc.GetCStr(), fileNameDst.GetCStr(), FALSE); -} -FX_BOOL FX_File_Copy(const CFX_WideStringC& fileNameSrc, - const CFX_WideStringC& fileNameDst) { - return ::CopyFileW((LPCWSTR)fileNameSrc.GetPtr(), - (LPCWSTR)fileNameDst.GetPtr(), FALSE); -} -FX_BOOL FX_File_Move(const CFX_ByteStringC& fileNameSrc, - const CFX_ByteStringC& fileNameDst) { - return ::MoveFileA(fileNameSrc.GetCStr(), fileNameDst.GetCStr()); -} -FX_BOOL FX_File_Move(const CFX_WideStringC& fileNameSrc, - const CFX_WideStringC& fileNameDst) { - return ::MoveFileW((LPCWSTR)fileNameSrc.GetPtr(), - (LPCWSTR)fileNameDst.GetPtr()); -} #endif |