summaryrefslogtreecommitdiff
path: root/core/fxcrt/fxcrt_windows.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-05-19 17:31:01 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-19 17:31:01 -0700
commit411f1185f44b7862a9b1c16e588407ae197752dd (patch)
treec02ce8943cd41b857c198ef5e5bc7ef847368199 /core/fxcrt/fxcrt_windows.cpp
parent1f36fa860a170081f66809d634ec7ab83d7cb25e (diff)
downloadpdfium-411f1185f44b7862a9b1c16e588407ae197752dd.tar.xz
Remove Release() from IFXCRT_FileAccess.
Remove some unused impls. Review-Url: https://codereview.chromium.org/1994323002
Diffstat (limited to 'core/fxcrt/fxcrt_windows.cpp')
-rw-r--r--core/fxcrt/fxcrt_windows.cpp8
1 files changed, 4 insertions, 4 deletions
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;