aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2022-06-25 10:20:40 +0200
committerJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-06-25 14:25:58 +0200
commit9eda1fdc41fcc5a5ede4fdcf8ec355f1fc610699 (patch)
tree00ffc456f619d5c905fca0df5c8728a68bc983df
parente9c1637353fc3d063ae06bf98dd200e245ef9ff4 (diff)
downloadqpdf-9eda1fdc41fcc5a5ede4fdcf8ec355f1fc610699.tar.zst
Remove redundant QPDF_Array::setDescription and QPDF_Dictionary::setDescription
-rw-r--r--libqpdf/QPDF_Array.cc6
-rw-r--r--libqpdf/QPDF_Dictionary.cc6
-rw-r--r--libqpdf/qpdf/QPDF_Array.hh1
-rw-r--r--libqpdf/qpdf/QPDF_Dictionary.hh1
4 files changed, 0 insertions, 14 deletions
diff --git a/libqpdf/QPDF_Array.cc b/libqpdf/QPDF_Array.cc
index cb94d487..fd046ec7 100644
--- a/libqpdf/QPDF_Array.cc
+++ b/libqpdf/QPDF_Array.cc
@@ -56,12 +56,6 @@ QPDF_Array::getTypeName() const
return "array";
}
-void
-QPDF_Array::setDescription(QPDF* qpdf, std::string const& description)
-{
- this->QPDFObject::setDescription(qpdf, description);
-}
-
int
QPDF_Array::getNItems() const
{
diff --git a/libqpdf/QPDF_Dictionary.cc b/libqpdf/QPDF_Dictionary.cc
index 26239317..9453b64a 100644
--- a/libqpdf/QPDF_Dictionary.cc
+++ b/libqpdf/QPDF_Dictionary.cc
@@ -58,12 +58,6 @@ QPDF_Dictionary::getTypeName() const
return "dictionary";
}
-void
-QPDF_Dictionary::setDescription(QPDF* qpdf, std::string const& description)
-{
- this->QPDFObject::setDescription(qpdf, description);
-}
-
bool
QPDF_Dictionary::hasKey(std::string const& key)
{
diff --git a/libqpdf/qpdf/QPDF_Array.hh b/libqpdf/qpdf/QPDF_Array.hh
index f45f8006..ac5d98be 100644
--- a/libqpdf/qpdf/QPDF_Array.hh
+++ b/libqpdf/qpdf/QPDF_Array.hh
@@ -17,7 +17,6 @@ class QPDF_Array: public QPDFObject
virtual JSON getJSON(int json_version);
virtual QPDFObject::object_type_e getTypeCode() const;
virtual char const* getTypeName() const;
- virtual void setDescription(QPDF*, std::string const&);
int getNItems() const;
QPDFObjectHandle getItem(int n) const;
diff --git a/libqpdf/qpdf/QPDF_Dictionary.hh b/libqpdf/qpdf/QPDF_Dictionary.hh
index 16801a76..be1c8733 100644
--- a/libqpdf/qpdf/QPDF_Dictionary.hh
+++ b/libqpdf/qpdf/QPDF_Dictionary.hh
@@ -17,7 +17,6 @@ class QPDF_Dictionary: public QPDFObject
virtual JSON getJSON(int json_version);
virtual QPDFObject::object_type_e getTypeCode() const;
virtual char const* getTypeName() const;
- virtual void setDescription(QPDF*, std::string const&);
// hasKey() and getKeys() treat keys with null values as if they
// aren't there. getKey() returns null for the value of a