Remove unused FilterParserRatingComparatorDecorator
This commit is contained in:
parent
9f7ebb1ac7
commit
92a1173b9e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue