Commit 16460214 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Don't reimplement ThumbCreator::flags()

It does the same thing as the default implementation
parent 130af815
Pipeline #217545 passed with stage
in 45 seconds
......@@ -32,9 +32,3 @@ bool MobiThumbnail::create(const QString &path, int width, int height, QImage &i
img=doc.thumbnail();
return !img.isNull();
}
ThumbCreator::Flags MobiThumbnail::flags() const
{
return static_cast<Flags>(None);
}
......@@ -17,7 +17,6 @@ class MobiThumbnail : public ThumbCreator
public:
MobiThumbnail() {}
bool create(const QString &path, int, int, QImage &img) override;
Flags flags() const override;
};
#endif
......@@ -475,11 +475,6 @@ bool GSCreator::create(const QString &path, int width, int height, QImage &img)
return ok && loaded;
}
ThumbCreator::Flags GSCreator::flags() const
{
return static_cast<Flags>(None);
}
void GSCreator::comment(Name name)
{
switch (name) {
......
......@@ -28,7 +28,6 @@ class GSCreator : public ThumbCreator, public KDSCCommentHandler
public:
GSCreator() {}
bool create(const QString &path, int, int, QImage &img) override;
Flags flags() const override;
void comment(Name name) override;
private:
......
......@@ -102,8 +102,3 @@ bool RAWCreator::create(const QString &path, int width, int height, QImage &img)
}
return loaded;
}
ThumbCreator::Flags RAWCreator::flags() const
{
return (Flags)(0);
}
......@@ -28,7 +28,6 @@ public:
RAWCreator();
~RAWCreator() override;
bool create(const QString &path, int width, int height, QImage &img) override;
Flags flags() const override;
};
#endif
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