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

Unified Diff: core/src/fpdftext/fpdf_text.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/src/fpdfdoc/doc_ap.cpp ('k') | core/src/fpdftext/fpdf_text_int.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/src/fpdftext/fpdf_text.cpp
diff --git a/core/src/fpdftext/fpdf_text.cpp b/core/src/fpdftext/fpdf_text.cpp
index 048ebde2be20814768811bf7defba2de56b12eca..defad925b96b3fb8916c8ffb646de648566e589d 100644
--- a/core/src/fpdftext/fpdf_text.cpp
+++ b/core/src/fpdftext/fpdf_text.cpp
@@ -128,8 +128,6 @@ void CTextPage::ProcessObject(CPDF_PageObject* pObject)
segment_left = char_left;
segment = "";
}
- CFX_WideString wCh = pText->GetFont()->UnicodeFromCharCode(charcode);
- FX_DWORD ch = wCh.GetLength() > 0 ? wCh.GetAt(0) : charcode;
if (space_count > 1) {
pBaseLine = InsertTextBox(pBaseLine, baseline, leftx + segment_left, leftx + segment_right,
topy, bottomy, spacew, fontsize_v, segment, pFont);
@@ -381,7 +379,6 @@ void NormalizeString(CFX_WideString& str)
i = j;
j = n;
for(; n <= i; n += 3) {
- int ret = order.GetAt(n);
int start = order.GetAt(n - 2);
int count1 = order.GetAt(n - 1);
int end = start + count1 ;
@@ -561,7 +558,6 @@ FX_BOOL CTextBaseLine::CanMerge(CTextBaseLine* pOther)
FX_FLOAT dy = (FX_FLOAT)FXSYS_fabs(m_BaseLine - pOther->m_BaseLine);
for (int i = 0; i < m_TextList.GetSize(); i ++) {
CTextBox* pText = (CTextBox*)m_TextList.GetAt(i);
- FX_FLOAT width = pText->m_Right - pText->m_Left;
for (int j = 0; j < pOther->m_TextList.GetSize(); j ++) {
CTextBox* pOtherText = (CTextBox*)pOther->m_TextList.GetAt(j);
FX_FLOAT inter_left, inter_right;
« no previous file with comments | « core/src/fpdfdoc/doc_ap.cpp ('k') | core/src/fpdftext/fpdf_text_int.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698