Delete unused IptcKey copy operator

main
Luis Díaz Más 4 years ago
parent d8fcbc4562
commit 15e8c75a38

@ -268,17 +268,11 @@ namespace Exiv2 {
IptcKey(uint16_t tag, uint16_t record); IptcKey(uint16_t tag, uint16_t record);
//! Copy constructor //! Copy constructor
IptcKey(const IptcKey& rhs); IptcKey(const IptcKey& rhs);
IptcKey& operator=(const IptcKey& rhs) = delete;
//! Destructor //! Destructor
~IptcKey() override = default; ~IptcKey() override = default;
//@} //@}
//! @name Manipulators
//@{
/*!
@brief Assignment operator.
*/
IptcKey& operator=(const IptcKey& rhs);
//@}
//! @name Accessors //! @name Accessors
//@{ //@{

@ -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 std::string IptcKey::key() const
{ {
return key_; return key_;

Loading…
Cancel
Save