aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2022-09-04 01:58:53 +0200
committerm-holger <m-holger@kubitscheck.org>2022-09-04 11:41:18 +0200
commit9c86ba40d80ee3b58801dfe77e47fbc5a9dd6066 (patch)
treea438e346b4e124ba8babdec1effca4f8b9386a7d /include
parent6d2db68f2ecd1f8b0945bc982af7a9807436d881 (diff)
downloadqpdf-9c86ba40d80ee3b58801dfe77e47fbc5a9dd6066.tar.zst
Fix commit 805c1ad : Reset QPDFValue::qpdf and QPDFValue::og when ...
On destruction of the QPDF object replace all indirect object references with direct nulls. Remove all existing code to release resolved references. Fixes performance issue due to interaction of resetting QPDFValue::qpdf and og members and prior code.
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFObjectHandle.hh19
1 files changed, 0 insertions, 19 deletions
diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh
index 058c11f3..8f1858a1 100644
--- a/include/qpdf/QPDFObjectHandle.hh
+++ b/include/qpdf/QPDFObjectHandle.hh
@@ -1500,23 +1500,6 @@ class QPDFObjectHandle
};
friend class ObjAccessor;
- // Provide access to specific classes for recursive
- // releaseResolved().
- class ReleaseResolver
- {
- friend class QPDF_Dictionary;
- friend class QPDF_Stream;
- friend class SparseOHArray;
-
- private:
- static void
- releaseResolved(QPDFObjectHandle& o)
- {
- o.releaseResolved();
- }
- };
- friend class ReleaseResolver;
-
// Convenience routine: Throws if the assumption is violated. Your
// code will be better if you call one of the isType methods and
// handle the case of the type being wrong, but these can be
@@ -1614,8 +1597,6 @@ class QPDFObjectHandle
bool first_level_only,
bool stop_at_streams);
void shallowCopyInternal(QPDFObjectHandle& oh, bool first_level_only);
- void releaseResolved();
-
void setParsedOffset(qpdf_offset_t offset);
void parseContentStream_internal(
std::string const& description, ParserCallbacks* callbacks);