From d0c36505eebd0a755f77f98676db0b5bad2f2496 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Thu, 28 Aug 2014 14:44:46 -0700 Subject: Remove unused fields and stack locals. Edge closer to getting PDFium to build in chromium_code mode. BUG=https://code.google.com/p/pdfium/issues/detail?id=29 R=bo_xu@foxitsoftware.com Review URL: https://codereview.chromium.org/437343002 --- core/src/fxge/agg/agg23/agg_curves.h | 3 --- core/src/fxge/agg/agg23/fx_agg_driver.cpp | 2 -- 2 files changed, 5 deletions(-) diff --git a/core/src/fxge/agg/agg23/agg_curves.h b/core/src/fxge/agg/agg23/agg_curves.h index 5719cbf508..61270e64a5 100644 --- a/core/src/fxge/agg/agg23/agg_curves.h +++ b/core/src/fxge/agg/agg23/agg_curves.h @@ -63,14 +63,12 @@ class curve4_div : public CFX_Object { public: curve4_div() : - m_cusp_limit(0), m_count(0) {} curve4_div(FX_FLOAT x1, FX_FLOAT y1, FX_FLOAT x2, FX_FLOAT y2, FX_FLOAT x3, FX_FLOAT y3, FX_FLOAT x4, FX_FLOAT y4) : - m_cusp_limit(0), m_count(0) { init(x1, y1, x2, y2, x3, y3, x4, y4); @@ -134,7 +132,6 @@ private: unsigned level); FX_FLOAT m_distance_tolerance_square; FX_FLOAT m_distance_tolerance_manhattan; - FX_FLOAT m_cusp_limit; unsigned m_count; pod_deque m_points; }; diff --git a/core/src/fxge/agg/agg23/fx_agg_driver.cpp b/core/src/fxge/agg/agg23/fx_agg_driver.cpp index c3f42bf9f9..f0f6e5ee66 100644 --- a/core/src/fxge/agg/agg23/fx_agg_driver.cpp +++ b/core/src/fxge/agg/agg23/fx_agg_driver.cpp @@ -1317,8 +1317,6 @@ void RgbByteOrderTransferBitmap(CFX_DIBitmap* pBitmap, int dest_left, int dest_t } return; } - int src_pitch = pSrcBitmap->GetPitch(); - FX_ARGB* src_pal = pSrcBitmap->GetPalette(); FX_LPBYTE dest_buf = buffer + dest_top * pitch + dest_left * Bpp; if (dest_format == FXDIB_Rgb) { if (src_format == FXDIB_Rgb32) { -- cgit v1.2.3