Remove unused FilterParserRatingComparatorDecorator

This commit is contained in:
Jonas Kvinge 2024-07-19 18:18:02 +02:00
parent 9f7ebb1ac7
commit 92a1173b9e
1 changed files with 0 additions and 10 deletions

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