From db12c167d3613c9a73b28cac75e37779dbc680e0 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 2 Oct 2015 10:28:27 -0700 Subject: XFA: Remove tests for new in fxge and fpdfsdk. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1378303002 . --- core/src/fxge/apple/fx_quartz_device.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'core/src/fxge/apple') diff --git a/core/src/fxge/apple/fx_quartz_device.cpp b/core/src/fxge/apple/fx_quartz_device.cpp index 0407a5e612..61a0cef543 100644 --- a/core/src/fxge/apple/fx_quartz_device.cpp +++ b/core/src/fxge/apple/fx_quartz_device.cpp @@ -1019,9 +1019,6 @@ FX_BOOL CFX_QuartzDevice::Attach(CGContextRef context, int32_t nDeviceClass) { CGContextRetain(m_pContext); IFX_RenderDeviceDriver* pDriver = new CFX_QuartzDeviceDriver(m_pContext, nDeviceClass); - if (!pDriver) { - return FALSE; - } SetDeviceDriver(pDriver); return TRUE; } @@ -1033,9 +1030,6 @@ FX_BOOL CFX_QuartzDevice::Attach(CFX_DIBitmap* pBitmap) { } IFX_RenderDeviceDriver* pDriver = new CFX_QuartzDeviceDriver(m_pContext, FXDC_DISPLAY); - if (!pDriver) { - return FALSE; - } SetDeviceDriver(pDriver); return TRUE; } @@ -1046,9 +1040,6 @@ FX_BOOL CFX_QuartzDevice::Create(int32_t width, return FALSE; } CFX_DIBitmap* pBitmap = new CFX_DIBitmap; - if (!pBitmap) { - return FALSE; - } if (!pBitmap->Create(width, height, format)) { delete pBitmap; return FALSE; -- cgit v1.2.3