summaryrefslogtreecommitdiffstats
path: root/src/library
diff options
context:
space:
mode:
authorDaniel Schürmann <daschuer@mixxx.org>2016-08-28 01:10:00 +0200
committerDaniel Schürmann <daschuer@mixxx.org>2016-08-28 01:10:00 +0200
commit799571108e1474ca23b77c519b2d115b4329d707 (patch)
tree7099bb0565ee46e493cd6b41ea39477d0cd4ed4d /src/library
parent5001fb16c90b28f1329c3d100c0633645a1bba16 (diff)
Removed unused operator== for CoverArt
Diffstat (limited to 'src/library')
-rw-r--r--src/library/coverart.cpp16
-rw-r--r--src/library/coverart.h2
2 files changed, 2 insertions, 16 deletions
diff --git a/src/library/coverart.cpp b/src/library/coverart.cpp
index c288f9b066..351ba5f595 100644
--- a/src/library/coverart.cpp
+++ b/src/library/coverart.cpp
@@ -48,8 +48,8 @@ QString coverInfoToString(const CoverInfo& info) {
bool operator==(const CoverInfoRelative& a, const CoverInfoRelative& b) {
return a.source == b.source &&
a.type == b.type &&
- a.coverLocation == b.coverLocation &&
- a.hash == b.hash;
+ a.hash == b.hash &&
+ a.coverLocation == b.coverLocation;
}
bool operator!=(const CoverInfoRelative& a, const CoverInfoRelative& b) {
@@ -76,18 +76,6 @@ QDebug operator<<(QDebug dbg, const CoverInfo& info) {
.arg(coverInfoToString(info));
}
-bool operator==(const CoverArt& a, const CoverArt& b) {
- // Only count image in the equality if both are non-null.
- return static_cast<const CoverInfo&>(a) ==
- static_cast<const CoverInfo&>(b) &&
- (a.image.isNull() || b.image.isNull() ||
- a.image == b.image);
-}
-
-bool operator!=(const CoverArt& a, const CoverArt& b) {
- return !(a == b);
-}
-
QDebug operator<<(QDebug dbg, const CoverArt& art) {
return dbg.maybeSpace() << QString("CoverArt(%1,%2,%3)")
.arg(coverInfoToString(art),
diff --git a/src/library/coverart.h b/src/library/coverart.h
index 2fedd72370..0c458689af 100644
--- a/src/library/coverart.h
+++ b/src/library/coverart.h
@@ -88,8 +88,6 @@ class CoverArt : public CoverInfo {
int resizedToWidth;
};
-bool operator==(const CoverArt& a, const CoverArt& b);
-bool operator!=(const CoverArt& a, const CoverArt& b);
QDebug operator<<(QDebug dbg, const CoverArt& art);
#endif /* COVERART_H */