From dc36790c08bdcea0227f05b6b4f5f5d8997522e0 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Wed, 3 May 2017 13:52:23 -0700 Subject: Remove FXSYS_wfopen(), it is totally unused. Change-Id: I612d9eaa47f6e4b023a49ab9120372de3d73cdc7 Reviewed-on: https://pdfium-review.googlesource.com/4831 Commit-Queue: dsinclair Reviewed-by: dsinclair --- core/fxcrt/fx_basic_gcc.cpp | 4 ---- core/fxcrt/fx_system.h | 10 ---------- 2 files changed, 14 deletions(-) (limited to 'core/fxcrt') diff --git a/core/fxcrt/fx_basic_gcc.cpp b/core/fxcrt/fx_basic_gcc.cpp index ce1f813b5a..8a65576b39 100644 --- a/core/fxcrt/fx_basic_gcc.cpp +++ b/core/fxcrt/fx_basic_gcc.cpp @@ -135,10 +135,6 @@ uint32_t FXSYS_GetModuleFileName(void* hModule, char* buf, uint32_t bufsize) { #ifdef __cplusplus extern "C" { #endif -FILE* FXSYS_wfopen(const wchar_t* filename, const wchar_t* mode) { - return fopen(CFX_ByteString::FromUnicode(filename).c_str(), - CFX_ByteString::FromUnicode(mode).c_str()); -} char* FXSYS_strlwr(char* str) { if (!str) { return nullptr; diff --git a/core/fxcrt/fx_system.h b/core/fxcrt/fx_system.h index 1e66e7bb80..5e8aa6c0e6 100644 --- a/core/fxcrt/fx_system.h +++ b/core/fxcrt/fx_system.h @@ -122,16 +122,6 @@ void FXSYS_vsnprintf(char* str, size_t size, const char* fmt, va_list ap); #define FXSYS_sprintf DO_NOT_USE_SPRINTF_DIE_DIE_DIE #define FXSYS_vsprintf DO_NOT_USE_VSPRINTF_DIE_DIE_DIE -#if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ -#ifdef _NATIVE_WCHAR_T_DEFINED -#define FXSYS_wfopen(f, m) _wfopen((const wchar_t*)(f), (const wchar_t*)(m)) -#else -#define FXSYS_wfopen _wfopen -#endif // _NATIVE_WCHAR_T_DEFINED -#else -FILE* FXSYS_wfopen(const wchar_t* filename, const wchar_t* mode); -#endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ - #ifdef __cplusplus } // extern "C" -- cgit v1.2.3