Commit b47a3181 authored by Volker Krause's avatar Volker Krause
Browse files

Remove unused recurrence assignment operators

Summary:
KCalendarCore::Recurrence::operator= turns out to be broken, this clears
the path to its removal, and avoids accidental use meanwhile.

Reviewers: dvratil, djarvie

Reviewed By: dvratil, djarvie

Subscribers: kde-pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D24320
parent a6f1f714
......@@ -42,11 +42,7 @@ public:
Recurrence_p() : Recurrence() {}
Recurrence_p(const Recurrence &r) : Recurrence(r) {}
Recurrence_p(const Recurrence_p &r) : Recurrence(r) {}
Recurrence_p& operator=(const Recurrence_p &r)
{
Recurrence::operator=(r);
return *this;
}
Recurrence_p& operator=(const Recurrence_p &r) = delete;
};
class Q_DECL_HIDDEN KARecurrence::Private
......@@ -130,14 +126,6 @@ KARecurrence::~KARecurrence()
delete d;
}
KARecurrence &KARecurrence::operator=(const KARecurrence &r)
{
if (&r != this) {
*d = *r.d;
}
return *this;
}
bool KARecurrence::operator==(const KARecurrence &r) const
{
return d->mRecurrence == r.d->mRecurrence
......
......@@ -90,7 +90,7 @@ public:
* Assignment operator.
* @param r the recurrence which will be assigned to this.
*/
KARecurrence &operator=(const KARecurrence &r);
KARecurrence &operator=(const KARecurrence &r) = delete;
/**
* Comparison operator for equality.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment