Commit 6355ecd4 authored by Volker Krause's avatar Volker Krause

Remove the entirely unused useCache property

Reviewers: #kde_pim, mlaurent

Reviewed By: #kde_pim, mlaurent

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D7409
parent a53aed96
......@@ -38,7 +38,6 @@ void GravatarResolvUrlJobTest::shouldHaveDefaultValue()
QCOMPARE(job.hasGravatar(), false);
QCOMPARE(job.pixmap().isNull(), true);
QCOMPARE(job.useDefaultPixmap(), false);
QCOMPARE(job.useCache(), false);
QCOMPARE(job.useLibravatar(), false);
QCOMPARE(job.fallbackGravatar(), true);
}
......@@ -46,13 +45,6 @@ void GravatarResolvUrlJobTest::shouldHaveDefaultValue()
void GravatarResolvUrlJobTest::shouldChangeValue()
{
Gravatar::GravatarResolvUrlJob job;
bool useCache = true;
job.setUseCache(useCache);
QCOMPARE(job.useCache(), useCache);
useCache = false;
job.setUseCache(useCache);
QCOMPARE(job.useCache(), useCache);
bool useDefaultPixmap = true;
job.setUseDefaultPixmap(useDefaultPixmap);
QCOMPARE(job.useDefaultPixmap(), useDefaultPixmap);
......
......@@ -38,7 +38,6 @@ public:
, mSize(80)
, mHasGravatar(false)
, mUseDefaultPixmap(false)
, mUseCache(false)
, mUseLibravatar(false)
, mFallbackGravatar(true)
, mFallbackDone(false)
......@@ -52,7 +51,6 @@ public:
int mSize;
bool mHasGravatar;
bool mUseDefaultPixmap;
bool mUseCache;
bool mUseLibravatar;
bool mFallbackGravatar;
bool mFallbackDone;
......@@ -187,16 +185,6 @@ void GravatarResolvUrlJob::setUseLibravatar(bool useLibravatar)
d->mUseLibravatar = useLibravatar;
}
bool GravatarResolvUrlJob::useCache() const
{
return d->mUseCache;
}
void GravatarResolvUrlJob::setUseCache(bool useCache)
{
d->mUseCache = useCache;
}
bool GravatarResolvUrlJob::useDefaultPixmap() const
{
return d->mUseDefaultPixmap;
......
......@@ -55,9 +55,6 @@ public:
bool useDefaultPixmap() const;
void setUseDefaultPixmap(bool useDefaultPixmap);
bool useCache() const;
void setUseCache(bool useCache);
bool useLibravatar() const;
void setUseLibravatar(bool useLibravatar);
......
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