Cleanup parts of fpdf_render_loadimage.cpp.
authorLei Zhang <thestig@chromium.org>
Sat, 7 Feb 2015 00:44:10 +0000 (16:44 -0800)
committerLei Zhang <thestig@chromium.org>
Sat, 7 Feb 2015 00:44:10 +0000 (16:44 -0800)
commit3f41851972a18762164d7110a82da3baed564b80
treed14cbae57ae71a66c6b8c32df2d80c812a1c41d9
parent72feb27fc174c2139b642eb7390fffac608f6c87
Cleanup parts of fpdf_render_loadimage.cpp.

- Add functions to do pitch calculation.
- Delete dead code.
- Don't bother checking pointers before deleting them.
- Don't bother setting pointers to NULL in dtors.

R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/890883006
core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp
core/src/fpdfapi/fpdf_render/render_int.h