cql3: statement_restrictions: remove unused find_needs_filtering and has_slice_or_needs_filtering

These helper functions were wrappers around find_binop that are no
longer called, since their call sites have been replaced by
predicate-based checks.
This commit is contained in:
Avi Kivity
2026-05-12 18:55:42 +03:00
parent eb98aea466
commit dca2cc512e

View File

@@ -67,14 +67,6 @@ inline bool needs_filtering(oper_t op) {
(op == oper_t::IS_NOT) || (op == oper_t::NEQ) || (op == oper_t::NOT_IN);
}
inline auto find_needs_filtering(const expression& e) {
return find_binop(e, [] (const binary_operator& bo) { return needs_filtering(bo.op); });
}
inline bool has_slice_or_needs_filtering(const expression& e) {
return find_binop(e, [] (const binary_operator& o) { return is_slice(o.op) || needs_filtering(o.op); });
}
bool contains_multi_column_restriction(const expression&);
bool has_only_eq_binops(const expression&);