summaryrefslogtreecommitdiff
path: root/core/src/fpdftext/fpdf_text.cpp
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2014-07-29 08:55:54 -0700
committerNico Weber <thakis@chromium.org>2014-07-29 08:55:54 -0700
commitc77e8f73397613f278eaeef2cae44debc6a684c8 (patch)
tree325d52616e193459f3cb248ce910852333d5d59d /core/src/fpdftext/fpdf_text.cpp
parent3b07e751353a12d1b4605abfa96881c8eae1bbe5 (diff)
downloadpdfium-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 'core/src/fpdftext/fpdf_text.cpp')
-rw-r--r--core/src/fpdftext/fpdf_text.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/core/src/fpdftext/fpdf_text.cpp b/core/src/fpdftext/fpdf_text.cpp
index 048ebde2be..defad925b9 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;