From f5ea42ee59635695e8fb1bb5ea70396853ed50aa Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 7 May 2011 13:36:13 +0000 Subject: [PATCH] remove unused offset variable git-svn-id: svn+q:///qpdf/trunk@1056 71b93d88-0707-0410-a8cf-f5a4172ac649 --- libqpdf/QPDF_linearization.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/libqpdf/QPDF_linearization.cc b/libqpdf/QPDF_linearization.cc index 4152a6da..51b6ea6a 100644 --- a/libqpdf/QPDF_linearization.cc +++ b/libqpdf/QPDF_linearization.cc @@ -94,7 +94,6 @@ QPDF::isLinearized() static PCRE lindict_re("(?s:(\\d+)\\s+0\\s+obj\\s*<<)"); - off_t offset = -1; int lindict_obj = -1; char* p = buf; while (lindict_obj == -1) @@ -102,7 +101,6 @@ QPDF::isLinearized() PCRE::Match m(lindict_re.match(p)); if (m) { - offset = m.getOffset(0) + (p - buf); lindict_obj = atoi(m.getMatch(1).c_str()); if (m.getMatch(0).find('\n') != std::string::npos) {