[poppler] poppler/Hints.cc poppler/Hints.h
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jun 14 20:02:12 UTC 2023
poppler/Hints.cc | 41 -----------------------------------------
poppler/Hints.h | 1 -
2 files changed, 42 deletions(-)
New commits:
commit 79ba5720ea8067b43d79c5dc100116cee75ccdbe
Author: Oliver Sander <oliver.sander at tu-dresden.de>
Date: Wed Jun 14 11:08:42 2023 +0200
Remove method Hints::getPageRanges
It is not used.
diff --git a/poppler/Hints.cc b/poppler/Hints.cc
index 4707e1c6..4933639c 100644
--- a/poppler/Hints.cc
+++ b/poppler/Hints.cc
@@ -491,47 +491,6 @@ Goffset Hints::getPageOffset(int page)
}
}
-std::vector<ByteRange> *Hints::getPageRanges(int page)
-{
- if ((page < 1) || (page > nPages)) {
- return nullptr;
- }
-
- int idx;
- if (page - 1 > pageFirst) {
- idx = page - 1;
- } else if (page - 1 < pageFirst) {
- idx = page;
- } else {
- idx = 0;
- }
-
- ByteRange pageRange;
- std::vector<ByteRange> *v = new std::vector<ByteRange>;
-
- pageRange.offset = pageOffset[idx];
- pageRange.length = pageLength[idx];
- v->push_back(pageRange);
-
- pageRange.offset = xRefOffset[idx];
- pageRange.length = 20 * nObjects[idx];
- v->push_back(pageRange);
-
- for (unsigned int j = 0; j < numSharedObject[idx]; j++) {
- unsigned int k = sharedObjectId[idx][j];
-
- pageRange.offset = groupOffset[k];
- pageRange.length = groupLength[k];
- v->push_back(pageRange);
-
- pageRange.offset = groupXRefOffset[k];
- pageRange.length = 20 * groupNumObjects[k];
- v->push_back(pageRange);
- }
-
- return v;
-}
-
int Hints::getPageObjectNum(int page)
{
if ((page < 1) || (page > nPages)) {
diff --git a/poppler/Hints.h b/poppler/Hints.h
index 6adbddc6..5104ca0e 100644
--- a/poppler/Hints.h
+++ b/poppler/Hints.h
@@ -39,7 +39,6 @@ public:
int getPageObjectNum(int page);
Goffset getPageOffset(int page);
- std::vector<ByteRange> *getPageRanges(int page);
private:
void readTables(BaseStream *str, Linearization *linearization, XRef *xref, SecurityHandler *secHdlr);
More information about the poppler
mailing list