diff --git a/lib/topic_query.rb b/lib/topic_query.rb index 86c126f2fe4..bfb787ce9f1 100644 --- a/lib/topic_query.rb +++ b/lib/topic_query.rb @@ -19,12 +19,6 @@ class TopicQuery int.call(x) && x.to_i.between?(0, PG_MAX_INT) end - array_int_or_int = lambda do |x| - int.call(x) || ( - Array === x && x.length > 0 && x.all?(&int) - ) - end - { max_posts: zero_up_to_max_int, min_posts: zero_up_to_max_int,