From dca2cc512e3b7b1779cf5e4d02794438e836e044 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Tue, 12 May 2026 18:55:42 +0300 Subject: [PATCH] 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. --- cql3/restrictions/statement_restrictions.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cql3/restrictions/statement_restrictions.cc b/cql3/restrictions/statement_restrictions.cc index b139f10f7b..05a329095e 100644 --- a/cql3/restrictions/statement_restrictions.cc +++ b/cql3/restrictions/statement_restrictions.cc @@ -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&);