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

Unified Diff: core/src/fpdftext/fpdf_text_int.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/fpdftext/fpdf_text.cpp ('k') | core/src/fxcrt/fx_basic_bstring.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/src/fpdftext/fpdf_text_int.cpp
diff --git a/core/src/fpdftext/fpdf_text_int.cpp b/core/src/fpdftext/fpdf_text_int.cpp
index 873657595218019d6e55d87595b1dd98a17dc5fd..ddf47620582685075e963de9480eb71cae845573 100644
--- a/core/src/fpdftext/fpdf_text_int.cpp
+++ b/core/src/fpdftext/fpdf_text_int.cpp
@@ -318,7 +318,6 @@ int CPDF_TextPage::GetIndexAtPos(CPDF_Point point , FX_FLOAT xTorelance, FX_FLOA
if (!m_IsParsered) {
return -3;
}
- FX_FLOAT distance = 0;
int pos = 0;
int NearPos = -1;
double xdif = 5000, ydif = 5000;
@@ -409,9 +408,6 @@ void CPDF_TextPage::GetRectsArrayByRect(CFX_FloatRect rect, CFX_RectArray& resRe
if (info_curchar.m_Flag == FPDFTEXT_CHAR_GENERATED) {
continue;
}
- if(pos == 494) {
- int a = 0;
- }
if (IsRectIntersect(rect, info_curchar.m_CharBox)) {
if(!pCurObj) {
pCurObj = info_curchar.m_pTextObj;
@@ -816,9 +812,6 @@ int CPDF_TextPage::CountBoundedSegments(FX_FLOAT left, FX_FLOAT top, FX_FLOAT ri
FX_BOOL segmentStatus = 0;
FX_BOOL IsContainPreChar = FALSE;
while (pos < nCount) {
- if(pos == 493) {
- int a = 0;
- }
PAGECHAR_INFO charinfo = *(PAGECHAR_INFO*)m_charList.GetAt(pos);
if(bContains && rect.Contains(charinfo.m_CharBox)) {
if (segmentStatus == 0 || segmentStatus == 2) {
@@ -1293,7 +1286,6 @@ void CPDF_TextPage::CloseTempLine()
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 ;
@@ -2183,7 +2175,6 @@ CPDF_TextPageFind::CPDF_TextPageFind(const IPDF_TextPage* pTextPage)
if (!pTextPage) {
return;
}
- CPDF_ModuleMgr* pPDFModule = CPDF_ModuleMgr::Get();
m_pTextPage = pTextPage;
m_strText = m_pTextPage->GetPageText();
int nCount = pTextPage->CountChars();
@@ -2500,9 +2491,6 @@ FX_BOOL CPDF_TextPageFind::IsMatchWholeWord(CFX_WideString csPageText, int start
if(startPos + char_count < csPageText.GetLength()) {
char_right = csPageText.GetAt(startPos + char_count);
}
- if(char_left == 0x61) {
- int a = 0;
- }
if ((char_left > 'A' && char_left < 'a') || (char_left > 'a' && char_left < 'z') || (char_left > 0xfb00 && char_left < 0xfb06) || (char_left >= '0' && char_left <= '9') ||
(char_right > 'A' && char_right < 'a') || (char_right > 'a' && char_right < 'z') || (char_right > 0xfb00 && char_right < 0xfb06) || (char_right >= '0' && char_right <= '9')) {
return FALSE;
« no previous file with comments | « core/src/fpdftext/fpdf_text.cpp ('k') | core/src/fxcrt/fx_basic_bstring.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698