diff options
author | Nico Weber <thakis@chromium.org> | 2014-07-29 08:55:54 -0700 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2014-07-29 08:55:54 -0700 |
commit | c77e8f73397613f278eaeef2cae44debc6a684c8 (patch) | |
tree | 325d52616e193459f3cb248ce910852333d5d59d /fpdfsdk/src/fxedit/fxet_pageobjs.cpp | |
parent | 3b07e751353a12d1b4605abfa96881c8eae1bbe5 (diff) | |
download | pdfium-c77e8f73397613f278eaeef2cae44debc6a684c8.tar.xz |
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
Diffstat (limited to 'fpdfsdk/src/fxedit/fxet_pageobjs.cpp')
-rw-r--r-- | fpdfsdk/src/fxedit/fxet_pageobjs.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
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<CPDF_TextObject*>& ObjArray) { |