diff options
author | dan sinclair <dsinclair@chromium.org> | 2017-05-11 09:57:27 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-11 20:19:30 +0000 |
commit | e6324fa7137fa224daa397464293e0c74e1c68ce (patch) | |
tree | 7e5a8246bfad7675f280857e53c1f7d745c6f469 /core/fxge/win32/fx_win32_device.cpp | |
parent | cb377bec7023723b23a015921ef781cb355b3c92 (diff) | |
download | pdfium-e6324fa7137fa224daa397464293e0c74e1c68ce.tar.xz |
Remove unused GetPlatformSurface and GetDC methods
The times we need the DC we call ::GetDC to retrieve it from the platform.
These methods are unused.
Change-Id: If83aa9b37ae2231d8029db6f2e6d8d17f1825611
Reviewed-on: https://pdfium-review.googlesource.com/5350
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxge/win32/fx_win32_device.cpp')
-rw-r--r-- | core/fxge/win32/fx_win32_device.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/core/fxge/win32/fx_win32_device.cpp b/core/fxge/win32/fx_win32_device.cpp index 6e960f95b4..43d53e1bb0 100644 --- a/core/fxge/win32/fx_win32_device.cpp +++ b/core/fxge/win32/fx_win32_device.cpp @@ -929,10 +929,6 @@ bool CGdiDeviceDriver::GetClipBox(FX_RECT* pRect) { return !!(::GetClipBox(m_hDC, (RECT*)pRect)); } -void* CGdiDeviceDriver::GetPlatformSurface() const { - return (void*)m_hDC; -} - void CGdiDeviceDriver::DrawLine(float x1, float y1, float x2, float y2) { if (!m_bMetafileDCType) { // EMF drawing is not bound to the DC. int startOutOfBoundsFlag = (x1 < 0) | ((x1 > m_Width) << 1) | @@ -1368,11 +1364,6 @@ CFX_WindowsDevice::CFX_WindowsDevice(HDC hDC) { CFX_WindowsDevice::~CFX_WindowsDevice() {} -HDC CFX_WindowsDevice::GetDC() const { - IFX_RenderDeviceDriver* pRDD = GetDeviceDriver(); - return pRDD ? reinterpret_cast<HDC>(pRDD->GetPlatformSurface()) : nullptr; -} - // static IFX_RenderDeviceDriver* CFX_WindowsDevice::CreateDriver(HDC hDC) { int device_type = ::GetDeviceCaps(hDC, TECHNOLOGY); |