Commit 8874cf5d authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

wallpapers/potd: Clean up unneeded empty deconstructors

The base class already defines one, meaning we do not need to define
it if we do not intend to do anything in it.
parent 5f02e49f
......@@ -23,8 +23,6 @@ ApodProvider::ApodProvider(QObject *parent, const KPluginMetaData &data, const Q
connect(job, &KIO::StoredTransferJob::finished, this, &ApodProvider::pageRequestFinished);
}
ApodProvider::~ApodProvider() = default;
void ApodProvider::pageRequestFinished(KJob *_job)
{
KIO::StoredTransferJob *job = static_cast<KIO::StoredTransferJob *>(_job);
......
......@@ -28,11 +28,6 @@ class ApodProvider : public PotdProvider
public:
explicit ApodProvider(QObject *parent, const KPluginMetaData &data, const QVariantList &args);
/**
* Destroys the APOD provider.
*/
~ApodProvider() override;
private:
void pageRequestFinished(KJob *job);
void imageRequestFinished(KJob *job);
......
......@@ -26,8 +26,6 @@ BingProvider::BingProvider(QObject *parent, const KPluginMetaData &data, const Q
connect(job, &KIO::StoredTransferJob::finished, this, &BingProvider::pageRequestFinished);
}
BingProvider::~BingProvider() = default;
void BingProvider::pageRequestFinished(KJob *_job)
{
KIO::StoredTransferJob *job = static_cast<KIO::StoredTransferJob *>(_job);
......
......@@ -22,11 +22,6 @@ class BingProvider : public PotdProvider
public:
BingProvider(QObject *parent, const KPluginMetaData &data, const QVariantList &args);
/**
* Destroys the Bing provider.
*/
~BingProvider() override;
private:
void pageRequestFinished(KJob *job);
void imageRequestFinished(KJob *job);
......
......@@ -103,10 +103,6 @@ CachedProvider::CachedProvider(const QString &identifier, QObject *parent)
QThreadPool::globalInstance()->start(thread);
}
CachedProvider::~CachedProvider()
{
}
QString CachedProvider::identifier() const
{
return mIdentifier;
......
......@@ -28,11 +28,6 @@ public:
*/
CachedProvider(const QString &identifier, QObject *parent);
/**
* Destroys the cached provider.
*/
~CachedProvider() override;
/**
* Returns the identifier of the picture request (name + date).
*/
......
......@@ -23,8 +23,6 @@ EpodProvider::EpodProvider(QObject *parent, const KPluginMetaData &data, const Q
connect(job, &KIO::StoredTransferJob::finished, this, &EpodProvider::pageRequestFinished);
}
EpodProvider::~EpodProvider() = default;
void EpodProvider::pageRequestFinished(KJob *_job)
{
KIO::StoredTransferJob *job = static_cast<KIO::StoredTransferJob *>(_job);
......
......@@ -24,11 +24,6 @@ class EpodProvider : public PotdProvider
public:
EpodProvider(QObject *parent, const KPluginMetaData &data, const QVariantList &args);
/**
* Destroys the EPOD provider.
*/
~EpodProvider() override;
private:
void pageRequestFinished(KJob *job);
void imageRequestFinished(KJob *job);
......
......@@ -38,8 +38,6 @@ FlickrProvider::FlickrProvider(QObject *parent, const KPluginMetaData &data, con
loadConfig();
}
FlickrProvider::~FlickrProvider() = default;
void FlickrProvider::sendXmlRequest(const QString &apiKey, const QString &apiSecret)
{
Q_UNUSED(apiSecret);
......
......@@ -28,11 +28,6 @@ class FlickrProvider : public PotdProvider
public:
explicit FlickrProvider(QObject *parent, const KPluginMetaData &data, const QVariantList &args);
/**
* Destroys the flickr provider.
*/
~FlickrProvider() override;
private:
void sendXmlRequest(const QString &apiKey, const QString &apiSecret);
void xmlRequestFinished(KJob *job);
......
......@@ -23,8 +23,6 @@ NatGeoProvider::NatGeoProvider(QObject *parent, const KPluginMetaData &data, con
connect(job, &KIO::StoredTransferJob::finished, this, &NatGeoProvider::pageRequestFinished);
}
NatGeoProvider::~NatGeoProvider() = default;
void NatGeoProvider::pageRequestFinished(KJob *_job)
{
KIO::StoredTransferJob *job = static_cast<KIO::StoredTransferJob *>(_job);
......
......@@ -26,11 +26,6 @@ class NatGeoProvider : public PotdProvider
public:
NatGeoProvider(QObject *parent, const KPluginMetaData &data, const QVariantList &args);
/**
* Destroys the APOD provider.
*/
~NatGeoProvider() override;
private:
void pageRequestFinished(KJob *job);
void imageRequestFinished(KJob *job);
......
......@@ -23,8 +23,6 @@ NOAAProvider::NOAAProvider(QObject *parent, const KPluginMetaData &data, const Q
connect(job, &KIO::StoredTransferJob::finished, this, &NOAAProvider::listPageRequestFinished);
}
NOAAProvider::~NOAAProvider() = default;
void NOAAProvider::listPageRequestFinished(KJob *_job)
{
KIO::StoredTransferJob *job = static_cast<KIO::StoredTransferJob *>(_job);
......
......@@ -25,11 +25,6 @@ class NOAAProvider : public PotdProvider
public:
NOAAProvider(QObject *parent, const KPluginMetaData &data, const QVariantList &args);
/**
* Destroys the NOAA provider.
*/
~NOAAProvider() override;
private:
void listPageRequestFinished(KJob *job);
void pageRequestFinished(KJob *job);
......
......@@ -29,8 +29,6 @@ UnsplashProvider::UnsplashProvider(QObject *parent, const KPluginMetaData &data,
connect(job, &KIO::StoredTransferJob::finished, this, &UnsplashProvider::imageRequestFinished);
}
UnsplashProvider::~UnsplashProvider() = default;
void UnsplashProvider::imageRequestFinished(KJob *_job)
{
KIO::StoredTransferJob *job = static_cast<KIO::StoredTransferJob *>(_job);
......
......@@ -22,11 +22,6 @@ class UnsplashProvider : public PotdProvider
public:
UnsplashProvider(QObject *parent, const KPluginMetaData &data, const QVariantList &args);
/**
* Destroys the Unsplash provider.
*/
~UnsplashProvider() override;
private:
void imageRequestFinished(KJob *job);
};
......
......@@ -33,8 +33,6 @@ WcpotdProvider::WcpotdProvider(QObject *parent, const KPluginMetaData &data, con
connect(job, &KIO::StoredTransferJob::finished, this, &WcpotdProvider::pageRequestFinished);
}
WcpotdProvider::~WcpotdProvider() = default;
void WcpotdProvider::pageRequestFinished(KJob *_job)
{
KIO::StoredTransferJob *job = static_cast<KIO::StoredTransferJob *>(_job);
......
......@@ -27,11 +27,6 @@ class WcpotdProvider : public PotdProvider
public:
WcpotdProvider(QObject *parent, const KPluginMetaData &data, const QVariantList &args);
/**
* Destroys the Wcpotd provider.
*/
~WcpotdProvider() override;
private:
void pageRequestFinished(KJob *job);
void imageRequestFinished(KJob *job);
......
Supports Markdown
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