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
3 changed files with 3 additions and 19 deletions
-17
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] {