summaryrefslogtreecommitdiff
path: root/sql/item_windowfunc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item_windowfunc.cc')
-rw-r--r--sql/item_windowfunc.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/sql/item_windowfunc.cc b/sql/item_windowfunc.cc
index fb2ad666018..59a22c63ed5 100644
--- a/sql/item_windowfunc.cc
+++ b/sql/item_windowfunc.cc
@@ -221,18 +221,6 @@ void Item_sum_percent_rank::setup_window_func(THD *thd, Window_spec *window_spec
clear();
}
-bool Item_sum_first_value::add()
-{
- if (value_added)
- return false;
-
- /* TODO(cvicentiu) This is done like this due to how Item_sum_hybrid works.
- For this usecase we can actually get rid of arg_cache. arg_cache is just
- for running a comparison function. */
- value_added= true;
- Item_sum_hybrid_simple::add();
- return false;
-}
bool Item_sum_hybrid_simple::fix_fields(THD *thd, Item **ref)
{