From fd6cfad310187631554613c375ec1b4c5ef887a3 Mon Sep 17 00:00:00 2001 From: thestig Date: Thu, 26 May 2016 11:37:27 -0700 Subject: Clean up CPDF_TextRenderer slightly. - Remove dead code - Remove default arguments - Move code into anonymous namespace Review-Url: https://codereview.chromium.org/2013023002 --- .../fpdf_render/include/cpdf_textrenderer.h | 25 ++++------------------ 1 file changed, 4 insertions(+), 21 deletions(-) (limited to 'core/fpdfapi/fpdf_render/include/cpdf_textrenderer.h') diff --git a/core/fpdfapi/fpdf_render/include/cpdf_textrenderer.h b/core/fpdfapi/fpdf_render/include/cpdf_textrenderer.h index d532196675..c4031bbbff 100644 --- a/core/fpdfapi/fpdf_render/include/cpdf_textrenderer.h +++ b/core/fpdfapi/fpdf_render/include/cpdf_textrenderer.h @@ -20,14 +20,6 @@ class CPDF_Font; class CPDF_TextRenderer { public: - static void DrawTextString(CFX_RenderDevice* pDevice, - int left, - int top, - CPDF_Font* pFont, - int height, - const CFX_ByteString& str, - FX_ARGB argb); - static void DrawTextString(CFX_RenderDevice* pDevice, FX_FLOAT origin_x, FX_FLOAT origin_y, @@ -36,9 +28,9 @@ class CPDF_TextRenderer { const CFX_Matrix* matrix, const CFX_ByteString& str, FX_ARGB fill_argb, - FX_ARGB stroke_argb = 0, - const CFX_GraphStateData* pGraphState = NULL, - const CPDF_RenderOptions* pOptions = NULL); + FX_ARGB stroke_argb, + const CFX_GraphStateData* pGraphState, + const CPDF_RenderOptions* pOptions); static FX_BOOL DrawTextPath(CFX_RenderDevice* pDevice, int nChars, @@ -52,7 +44,7 @@ class CPDF_TextRenderer { FX_ARGB fill_argb, FX_ARGB stroke_argb, CFX_PathData* pClippingPath, - int nFlag = 0); + int nFlag); static FX_BOOL DrawNormalText(CFX_RenderDevice* pDevice, int nChars, @@ -63,15 +55,6 @@ class CPDF_TextRenderer { const CFX_Matrix* pText2Device, FX_ARGB fill_argb, const CPDF_RenderOptions* pOptions); - - static FX_BOOL DrawType3Text(CFX_RenderDevice* pDevice, - int nChars, - uint32_t* pCharCodes, - FX_FLOAT* pCharPos, - CPDF_Font* pFont, - FX_FLOAT font_size, - const CFX_Matrix* pText2Device, - FX_ARGB fill_argb); }; #endif // CORE_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_TEXTRENDERER_H_ -- cgit v1.2.3