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/ge/fx_ge_text.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'core/src/fxge/ge/fx_ge_text.cpp') diff --git a/core/src/fxge/ge/fx_ge_text.cpp b/core/src/fxge/ge/fx_ge_text.cpp index 93e3486b79..1bb7bbeeea 100644 --- a/core/src/fxge/ge/fx_ge_text.cpp +++ b/core/src/fxge/ge/fx_ge_text.cpp @@ -1577,9 +1577,6 @@ CFX_GlyphBitmap* CFX_FaceCache::RenderGlyph(CFX_Font* pFont, } int dib_width = bmwidth; CFX_GlyphBitmap* pGlyphBitmap = new CFX_GlyphBitmap; - if (!pGlyphBitmap) { - return NULL; - } pGlyphBitmap->m_Bitmap.Create( dib_width, bmheight, anti_alias == FXFT_RENDER_MODE_MONO ? FXDIB_1bppMask : FXDIB_8bppMask); @@ -1828,9 +1825,6 @@ CFX_PathData* CFX_Font::LoadGlyphPath(FX_DWORD glyph_index, int dest_width) { return NULL; } CFX_PathData* pPath = new CFX_PathData; - if (!pPath) { - return NULL; - } pPath->SetPointCount(params.m_PointCount); params.m_bCount = FALSE; params.m_PointCount = 0; -- cgit v1.2.3