Commit f5ea42ee59635695e8fb1bb5ea70396853ed50aa

Authored by Jay Berkenbilt
1 parent aeb892f9

remove unused offset variable


git-svn-id: svn+q:///qpdf/trunk@1056 71b93d88-0707-0410-a8cf-f5a4172ac649
Showing 1 changed file with 0 additions and 2 deletions
libqpdf/QPDF_linearization.cc
@@ -94,7 +94,6 @@ QPDF::isLinearized() @@ -94,7 +94,6 @@ QPDF::isLinearized()
94 94
95 static PCRE lindict_re("(?s:(\\d+)\\s+0\\s+obj\\s*<<)"); 95 static PCRE lindict_re("(?s:(\\d+)\\s+0\\s+obj\\s*<<)");
96 96
97 - off_t offset = -1;  
98 int lindict_obj = -1; 97 int lindict_obj = -1;
99 char* p = buf; 98 char* p = buf;
100 while (lindict_obj == -1) 99 while (lindict_obj == -1)
@@ -102,7 +101,6 @@ QPDF::isLinearized() @@ -102,7 +101,6 @@ QPDF::isLinearized()
102 PCRE::Match m(lindict_re.match(p)); 101 PCRE::Match m(lindict_re.match(p));
103 if (m) 102 if (m)
104 { 103 {
105 - offset = m.getOffset(0) + (p - buf);  
106 lindict_obj = atoi(m.getMatch(1).c_str()); 104 lindict_obj = atoi(m.getMatch(1).c_str());
107 if (m.getMatch(0).find('\n') != std::string::npos) 105 if (m.getMatch(0).find('\n') != std::string::npos)
108 { 106 {