From 15e8c75a389518479fcb5d7090435e325f0e65d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20D=C3=ADaz=20M=C3=A1s?= Date: Mon, 10 Jan 2022 18:45:17 +0100 Subject: [PATCH] Delete unused IptcKey copy operator --- include/exiv2/datasets.hpp | 8 +------- src/datasets.cpp | 11 ----------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/include/exiv2/datasets.hpp b/include/exiv2/datasets.hpp index 48f50596..2c34b90f 100644 --- a/include/exiv2/datasets.hpp +++ b/include/exiv2/datasets.hpp @@ -268,17 +268,11 @@ namespace Exiv2 { IptcKey(uint16_t tag, uint16_t record); //! Copy constructor IptcKey(const IptcKey& rhs); + IptcKey& operator=(const IptcKey& rhs) = delete; //! Destructor ~IptcKey() override = default; //@} - //! @name Manipulators - //@{ - /*! - @brief Assignment operator. - */ - IptcKey& operator=(const IptcKey& rhs); - //@} //! @name Accessors //@{ diff --git a/src/datasets.cpp b/src/datasets.cpp index 53b6764c..556b0963 100644 --- a/src/datasets.cpp +++ b/src/datasets.cpp @@ -568,17 +568,6 @@ namespace Exiv2 { { } - IptcKey& IptcKey::operator=(const IptcKey& rhs) - { - if (this == &rhs) - return *this; - Key::operator=(rhs); - tag_ = rhs.tag_; - record_ = rhs.record_; - key_ = rhs.key_; - return *this; - } - std::string IptcKey::key() const { return key_;