Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(824)

Side by Side Diff: core/src/fxge/ge/fx_ge_fontmap.cpp

Issue 426763003: Remove a few unused variables, functions, and member variables. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/src/fxcodec/codec/fx_codec_jpeg.cpp ('k') | fpdfsdk/include/formfiller/FFL_Notify.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "../../../include/fxge/fx_ge.h" 7 #include "../../../include/fxge/fx_ge.h"
8 #include "../../../include/fxge/fx_freetype.h" 8 #include "../../../include/fxge/fx_freetype.h"
9 #include "text_int.h" 9 #include "text_int.h"
10 #define GET_TT_SHORT(w) (FX_WORD)(((w)[0] << 8) | (w)[1]) 10 #define GET_TT_SHORT(w) (FX_WORD)(((w)[0] << 8) | (w)[1])
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 } 527 }
528 static CFX_ByteString _FPDF_ReadStringFromFile(FXSYS_FILE* pFile, FX_DWORD size) 528 static CFX_ByteString _FPDF_ReadStringFromFile(FXSYS_FILE* pFile, FX_DWORD size)
529 { 529 {
530 CFX_ByteString buffer; 530 CFX_ByteString buffer;
531 if (!FXSYS_fread(buffer.GetBuffer(size), size, 1, pFile)) { 531 if (!FXSYS_fread(buffer.GetBuffer(size), size, 1, pFile)) {
532 return CFX_ByteString(); 532 return CFX_ByteString();
533 } 533 }
534 buffer.ReleaseBuffer(size); 534 buffer.ReleaseBuffer(size);
535 return buffer; 535 return buffer;
536 } 536 }
537 static CFX_ByteString _FPDF_ReadStringFromStreamFile(IFX_FileStream* pFile, FX_D WORD size)
538 {
539 CFX_ByteString buffer;
540 if (!pFile->ReadBlock(buffer.GetBuffer(size), size)) {
541 return CFX_ByteString();
542 }
543 buffer.ReleaseBuffer(size);
544 return buffer;
545 }
546 CFX_ByteString _FPDF_LoadTableFromTT(FXSYS_FILE* pFile, FX_LPCBYTE pTables, FX_D WORD nTables, FX_DWORD tag) 537 CFX_ByteString _FPDF_LoadTableFromTT(FXSYS_FILE* pFile, FX_LPCBYTE pTables, FX_D WORD nTables, FX_DWORD tag)
547 { 538 {
548 for (FX_DWORD i = 0; i < nTables; i ++) { 539 for (FX_DWORD i = 0; i < nTables; i ++) {
549 FX_LPCBYTE p = pTables + i * 16; 540 FX_LPCBYTE p = pTables + i * 16;
550 if (GET_TT_LONG(p) == tag) { 541 if (GET_TT_LONG(p) == tag) {
551 FX_DWORD offset = GET_TT_LONG(p + 8); 542 FX_DWORD offset = GET_TT_LONG(p + 8);
552 FX_DWORD size = GET_TT_LONG(p + 12); 543 FX_DWORD size = GET_TT_LONG(p + 12);
553 FXSYS_fseek(pFile, offset, FXSYS_SEEK_SET); 544 FXSYS_fseek(pFile, offset, FXSYS_SEEK_SET);
554 return _FPDF_ReadStringFromFile(pFile, size); 545 return _FPDF_ReadStringFromFile(pFile, size);
555 } 546 }
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after
1550 } 1541 }
1551 CFontFaceInfo* pFont = (CFontFaceInfo*)hFont; 1542 CFontFaceInfo* pFont = (CFontFaceInfo*)hFont;
1552 name = pFont->m_FaceName; 1543 name = pFont->m_FaceName;
1553 return TRUE; 1544 return TRUE;
1554 } 1545 }
1555 FX_BOOL CFX_FolderFontInfo::GetFontCharset(void* hFont, int& charset) 1546 FX_BOOL CFX_FolderFontInfo::GetFontCharset(void* hFont, int& charset)
1556 { 1547 {
1557 return FALSE; 1548 return FALSE;
1558 } 1549 }
1559 #endif 1550 #endif
OLDNEW
« no previous file with comments | « core/src/fxcodec/codec/fx_codec_jpeg.cpp ('k') | fpdfsdk/include/formfiller/FFL_Notify.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698