From c77e8f73397613f278eaeef2cae44debc6a684c8 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Tue, 29 Jul 2014 08:55:54 -0700 Subject: Remove a few unused variables, functions, and tables. Found by clang's -Wunused-variable, -Wunused-function, -Wunused-const-variable. BUG=none R=bo_xu@foxitsoftware.com Review URL: https://codereview.chromium.org/404653005 --- fpdfsdk/src/fxedit/fxet_pageobjs.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'fpdfsdk/src') diff --git a/fpdfsdk/src/fxedit/fxet_pageobjs.cpp b/fpdfsdk/src/fxedit/fxet_pageobjs.cpp index 33d57edc4e..e5cbf4efad 100644 --- a/fpdfsdk/src/fxedit/fxet_pageobjs.cpp +++ b/fpdfsdk/src/fxedit/fxet_pageobjs.cpp @@ -469,30 +469,6 @@ static CPDF_TextObject* AddTextObjToPageObjects(CPDF_PageObjects* pPageObjs, FX_ return pTxtObj; } -/* -List of currently supported standard fonts: -Courier, Courier-Bold, Courier-BoldOblique, Courier-Oblique -Helvetica, Helvetica-Bold, Helvetica-BoldOblique, Helvetica-Oblique -Times-Roman, Times-Bold, Times-Italic, Times-BoldItalic -Symbol, ZapfDingbats -*/ - -const char* g_sFXEDITStandardFontName[] = {"Courier", "Courier-Bold", "Courier-BoldOblique", "Courier-Oblique", - "Helvetica", "Helvetica-Bold", "Helvetica-BoldOblique", "Helvetica-Oblique", - "Times-Roman", "Times-Bold", "Times-Italic", "Times-BoldItalic", - "Symbol", "ZapfDingbats"}; - -static FX_BOOL FX_EDIT_IsStandardFont(const CFX_ByteString& sFontName) -{ - for (FX_INT32 i=0; i<14; i++) - { - if (sFontName == g_sFXEDITStandardFontName[i]) - return TRUE; - } - - return FALSE; -} - void IFX_Edit::GeneratePageObjects(CPDF_PageObjects* pPageObjects, IFX_Edit* pEdit, const CPDF_Point& ptOffset, const CPVT_WordRange* pRange, FX_COLORREF crText, CFX_ArrayTemplate& ObjArray) { -- cgit v1.2.3