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

Side by Side Diff: core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp

Issue 404653005: Remove a few unused variables, functions, and tables. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 5 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 | « no previous file | core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp » ('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/fpdfapi/fpdf_module.h" 7 #include "../../../include/fpdfapi/fpdf_module.h"
8 #include "../../../include/fpdfapi/fpdf_page.h" 8 #include "../../../include/fpdfapi/fpdf_page.h"
9 #include "font_int.h" 9 #include "font_int.h"
10 #include "../fpdf_cmaps/cmap_int.h" 10 #include "../fpdf_cmaps/cmap_int.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 num = num * 10 + word.GetAt(i) - '0'; 177 num = num * 10 + word.GetAt(i) - '0';
178 } 178 }
179 } 179 }
180 return num; 180 return num;
181 } 181 }
182 static FX_BOOL _CMap_GetCodeRange(_CMap_CodeRange& range, FX_BSTR first, FX_BSTR second) 182 static FX_BOOL _CMap_GetCodeRange(_CMap_CodeRange& range, FX_BSTR first, FX_BSTR second)
183 { 183 {
184 if (first.GetLength() == 0 || first.GetAt(0) != '<') { 184 if (first.GetLength() == 0 || first.GetAt(0) != '<') {
185 return FALSE; 185 return FALSE;
186 } 186 }
187 int num = 0;
188 int i; 187 int i;
189 for (i = 1; i < first.GetLength(); i ++) 188 for (i = 1; i < first.GetLength(); i ++)
190 if (first.GetAt(i) == '>') { 189 if (first.GetAt(i) == '>') {
191 break; 190 break;
192 } 191 }
193 range.m_CharSize = (i - 1) / 2; 192 range.m_CharSize = (i - 1) / 2;
194 if (range.m_CharSize > 4) { 193 if (range.m_CharSize > 4) {
195 return FALSE; 194 return FALSE;
196 } 195 }
197 for (i = 0; i < range.m_CharSize; i ++) { 196 for (i = 0; i < range.m_CharSize; i ++) {
(...skipping 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after
1703 if (middlecode > CID) { 1702 if (middlecode > CID) {
1704 end = middle - 1; 1703 end = middle - 1;
1705 } else if (middlecode < CID) { 1704 } else if (middlecode < CID) {
1706 begin = middle + 1; 1705 begin = middle + 1;
1707 } else { 1706 } else {
1708 return &Japan1_VertCIDs[middle].a; 1707 return &Japan1_VertCIDs[middle].a;
1709 } 1708 }
1710 } 1709 }
1711 return NULL; 1710 return NULL;
1712 } 1711 }
OLDNEW
« no previous file with comments | « no previous file | core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698