From 411f1185f44b7862a9b1c16e588407ae197752dd Mon Sep 17 00:00:00 2001 From: tsepez Date: Thu, 19 May 2016 17:31:01 -0700 Subject: Remove Release() from IFXCRT_FileAccess. Remove some unused impls. Review-Url: https://codereview.chromium.org/1994323002 --- core/fxcrt/fxcrt_windows.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/fxcrt/fxcrt_windows.cpp') diff --git a/core/fxcrt/fxcrt_windows.cpp b/core/fxcrt/fxcrt_windows.cpp index eb584ca804..d4b4e50c2c 100644 --- a/core/fxcrt/fxcrt_windows.cpp +++ b/core/fxcrt/fxcrt_windows.cpp @@ -9,9 +9,12 @@ #include "core/fxcrt/include/fx_string.h" #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ -IFXCRT_FileAccess* FXCRT_FileAccess_Create() { + +// static +IFXCRT_FileAccess* IFXCRT_FileAccess::Create() { return new CFXCRT_FileAccess_Win64; } + void FXCRT_Windows_GetFileMode(uint32_t dwMode, uint32_t& dwAccess, uint32_t& dwShare, @@ -75,9 +78,6 @@ void CFXCRT_FileAccess_Win64::Close() { ::CloseHandle(m_hFile); m_hFile = NULL; } -void CFXCRT_FileAccess_Win64::Release() { - delete this; -} FX_FILESIZE CFXCRT_FileAccess_Win64::GetSize() const { if (!m_hFile) { return 0; -- cgit v1.2.3