Remove unused operators in Image (#4267)

This commit is contained in:
nerix 2022-12-28 20:24:14 +01:00 committed by GitHub
parent 757c7c781e
commit 448c8622e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 19 deletions

View file

@ -21,6 +21,7 @@
- Dev: Migrated to C++ 20 (#4252, #4257)
- Dev: Enable LTO for main branch builds. (#4258, #4260)
- Dev: Removed unused include directives. (#4266)
- Dev: Removed unused operators in `Image` (#4267)
## 2.4.0

View file

@ -544,23 +544,6 @@ void Image::expireFrames()
this->shouldLoad_ = true; // Mark as needing load again
}
bool Image::operator==(const Image &other) const
{
if (this->isEmpty() && other.isEmpty())
return true;
if (!this->url_.string.isEmpty() && this->url_ == other.url_)
return true;
if (this->frames_->first() == other.frames_->first())
return true;
return false;
}
bool Image::operator!=(const Image &other) const
{
return !this->operator==(other);
}
ImageExpirationPool::ImageExpirationPool()
{
QObject::connect(&this->freeTimer_, &QTimer::timeout, [this] {

View file

@ -76,8 +76,8 @@ public:
int height() const;
bool animated() const;
bool operator==(const Image &image) const;
bool operator!=(const Image &image) const;
bool operator==(const Image &image) = delete;
bool operator!=(const Image &image) = delete;
private:
Image();