diff options
author | Alexander Barkov <bar@mariadb.com> | 2019-03-27 17:28:23 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2019-03-28 07:52:14 +0400 |
commit | 3e1f3d3e2f14a157121b92bd4b76e986f1846454 (patch) | |
tree | 107b71202aec634fabff24296d55a0f6e353496c /sql/item_sum.cc | |
parent | f78eb52fba4c5709f9c0b246eb6663774a9ff317 (diff) | |
download | mariadb-git-3e1f3d3e2f14a157121b92bd4b76e986f1846454.tar.gz |
A cleanup in Item_sum: removing dead code
Diffstat (limited to 'sql/item_sum.cc')
-rw-r--r-- | sql/item_sum.cc | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/sql/item_sum.cc b/sql/item_sum.cc index 9fa146593d8..3f03d97a80a 100644 --- a/sql/item_sum.cc +++ b/sql/item_sum.cc @@ -2679,25 +2679,6 @@ bool Item_sum_and::add() ** reset result of a Item_sum with is saved in a tmp_table *************************************************************************/ -void Item_sum_num::reset_field() -{ - double nr= args[0]->val_real(); - uchar *res=result_field->ptr; - - if (maybe_null) - { - if (args[0]->null_value) - { - nr=0.0; - result_field->set_null(); - } - else - result_field->set_notnull(); - } - float8store(res,nr); -} - - void Item_sum_hybrid::reset_field() { Item *UNINIT_VAR(tmp_item), *arg0; |