diff options
author | Lei Zhang <thestig@chromium.org> | 2015-10-02 10:28:27 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-10-02 10:28:27 -0700 |
commit | db12c167d3613c9a73b28cac75e37779dbc680e0 (patch) | |
tree | dbf281ba95a08a30fe21703ee6af3a309787c74f /core/src/fxge/win32/fx_win32_gdipext.cpp | |
parent | 421b4612439ee3a81d675b542038c6c3ff25e977 (diff) | |
download | pdfium-db12c167d3613c9a73b28cac75e37779dbc680e0.tar.xz |
XFA: Remove tests for new in fxge and fpdfsdk.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1378303002 .
Diffstat (limited to 'core/src/fxge/win32/fx_win32_gdipext.cpp')
-rw-r--r-- | core/src/fxge/win32/fx_win32_gdipext.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/core/src/fxge/win32/fx_win32_gdipext.cpp b/core/src/fxge/win32/fx_win32_gdipext.cpp index 9dbc7b4289..ce65a26301 100644 --- a/core/src/fxge/win32/fx_win32_gdipext.cpp +++ b/core/src/fxge/win32/fx_win32_gdipext.cpp @@ -476,9 +476,6 @@ static CFX_DIBitmap* _StretchMonoToGray(int dest_width, int result_height = pClipRect->Height(); int result_pitch = (result_width + 3) / 4 * 4; CFX_DIBitmap* pStretched = new CFX_DIBitmap; - if (!pStretched) { - return NULL; - } if (!pStretched->Create(result_width, result_height, FXDIB_8bppRgb)) { delete pStretched; return NULL; @@ -1417,9 +1414,6 @@ static PREVIEW3_DIBITMAP* LoadDIBitmap(WINDIB_Open_Args_ args) { return NULL; } pStream = new GpStream; - if (!pStream) { - return NULL; - } pStream->Write(args.memory_base, (ULONG)args.memory_size, NULL); status = CallFunc(GdipCreateBitmapFromStreamICM)(pStream, &pBitmap); } |