1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-30 00:55:33 +01:00

Remove unused FilterParserRatingComparatorDecorator

This commit is contained in:
Jonas Kvinge 2024-07-19 18:18:02 +02:00
parent 9f7ebb1ac7
commit 92a1173b9e

View File

@ -311,14 +311,4 @@ class FilterParserFloatLeComparator : public FilterParserSearchTermComparator {
float search_term_;
};
class FilterParserRatingComparatorDecorator : public FilterParserSearchTermComparator {
public:
explicit FilterParserRatingComparatorDecorator(FilterParserSearchTermComparator *cmp) : cmp_(cmp) {}
bool Matches(const QVariant &value) const override {
return cmp_->Matches(QString::number(lround(value.toDouble() * 10.0)));
}
private:
QScopedPointer<FilterParserSearchTermComparator> cmp_;
};
#endif // FILTERPARSERSEARCHCOMPARATORS_H