aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/QPDFObjectHandle.hh
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2022-12-29 16:12:04 +0100
committerJay Berkenbilt <jberkenbilt@users.noreply.github.com>2023-01-01 01:16:38 +0100
commitd7b470761b3fe6895888f44c15655e880e5afaa0 (patch)
treeb9ea464b807bdf8ca9bfb3bc10fa6eb2cba46d96 /include/qpdf/QPDFObjectHandle.hh
parent432f417429647f3d5ed74742d69eec23129493b6 (diff)
downloadqpdf-d7b470761b3fe6895888f44c15655e880e5afaa0.tar.zst
Remove QPDFObjectHandle::Factory and ObjAccessor
Diffstat (limited to 'include/qpdf/QPDFObjectHandle.hh')
-rw-r--r--include/qpdf/QPDFObjectHandle.hh43
1 files changed, 0 insertions, 43 deletions
diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh
index 51530ee5..3c597adc 100644
--- a/include/qpdf/QPDFObjectHandle.hh
+++ b/include/qpdf/QPDFObjectHandle.hh
@@ -1490,49 +1490,6 @@ class QPDFObjectHandle
QPDF_DLL
void warnIfPossible(std::string const& warning);
- // Initializers for objects. This Factory class gives the QPDF
- // class specific permission to call factory methods without
- // making it a friend of the whole QPDFObjectHandle class.
- class Factory
- {
- friend class QPDF;
-
- private:
- static QPDFObjectHandle
- newIndirect(std::shared_ptr<QPDFObject> const& obj)
- {
- return QPDFObjectHandle(obj);
- }
- };
-
- // Accessor for raw underlying object -- only QPDF is allowed to
- // call this.
- class ObjAccessor
- {
- friend class QPDF;
-
- private:
- static std::shared_ptr<QPDFObject>
- getObject(QPDFObjectHandle& o)
- {
- if (!o.dereference()) {
- throw std::logic_error("attempted to dereference an"
- " uninitialized QPDFObjectHandle");
- };
- return o.obj;
- }
- static QPDF_Array*
- asArray(QPDFObjectHandle& oh)
- {
- return oh.asArray();
- }
- static QPDF_Stream*
- asStream(QPDFObjectHandle& oh)
- {
- return oh.asStream();
- }
- };
-
// Provide access to specific classes for recursive
// disconnected().
class DisconnectAccess