summaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2012-12-27 17:39:01 +0100
committerJay Berkenbilt <ejb@ql.org>2012-12-31 11:36:48 +0100
commit04c203ae060458ae39253263c7dd1c603b931bf0 (patch)
tree2ef17e10a0e62146ae9a8b57d1c6e86fe452bf5d /libqpdf/QPDF.cc
parentb4b8b28ed237f127c6b8c31fbb244efacc70e0a8 (diff)
downloadqpdf-04c203ae060458ae39253263c7dd1c603b931bf0.tar.zst
Eliminate flattenScalarReferences
Diffstat (limited to 'libqpdf/QPDF.cc')
-rw-r--r--libqpdf/QPDF.cc39
1 files changed, 0 insertions, 39 deletions
diff --git a/libqpdf/QPDF.cc b/libqpdf/QPDF.cc
index 777fb837..fac79796 100644
--- a/libqpdf/QPDF.cc
+++ b/libqpdf/QPDF.cc
@@ -1860,28 +1860,6 @@ QPDF::swapObjects(int objid1, int generation1, int objid2, int generation2)
this->obj_cache[og2] = t;
}
-void
-QPDF::trimTrailerForWrite()
-{
- // Note that removing the encryption dictionary does not interfere
- // with reading encrypted files. QPDF loads all the information
- // it needs from the encryption dictionary at the beginning and
- // never looks at it again.
- this->trailer.removeKey("/ID");
- this->trailer.removeKey("/Encrypt");
- this->trailer.removeKey("/Prev");
-
- // Remove all trailer keys that potentially come from a
- // cross-reference stream
- this->trailer.removeKey("/Index");
- this->trailer.removeKey("/W");
- this->trailer.removeKey("/Length");
- this->trailer.removeKey("/Filter");
- this->trailer.removeKey("/DecodeParms");
- this->trailer.removeKey("/Type");
- this->trailer.removeKey("/XRefStm");
-}
-
std::string
QPDF::getFilename() const
{
@@ -2067,20 +2045,3 @@ QPDF::pipeStreamData(int objid, int generation,
}
pipeline->finish();
}
-
-void
-QPDF::decodeStreams()
-{
- for (std::map<ObjGen, QPDFXRefEntry>::iterator iter =
- this->xref_table.begin();
- iter != this->xref_table.end(); ++iter)
- {
- ObjGen const& og = (*iter).first;
- QPDFObjectHandle obj = getObjectByID(og.obj, og.gen);
- if (obj.isStream())
- {
- Pl_Discard pl;
- obj.pipeStreamData(&pl, true, false, false);
- }
- }
-}