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_windowfunc.h | |
parent | f78eb52fba4c5709f9c0b246eb6663774a9ff317 (diff) | |
download | mariadb-git-3e1f3d3e2f14a157121b92bd4b76e986f1846454.tar.gz |
A cleanup in Item_sum: removing dead code
Diffstat (limited to 'sql/item_windowfunc.h')
-rw-r--r-- | sql/item_windowfunc.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/item_windowfunc.h b/sql/item_windowfunc.h index 4c704808fe4..ea9f0147f83 100644 --- a/sql/item_windowfunc.h +++ b/sql/item_windowfunc.h @@ -130,6 +130,7 @@ public: return false; } + void reset_field() { DBUG_ASSERT(0); } void update_field() {} enum Sumfunctype sum_func() const @@ -193,11 +194,8 @@ public: return cur_rank; } + void reset_field() { DBUG_ASSERT(0); } void update_field() {} - /* - void reset_field(); - TODO: ^^ what does this do ? It is not called ever? - */ enum Sumfunctype sum_func () const { @@ -261,6 +259,7 @@ class Item_sum_dense_rank: public Item_sum_int first_add= true; } bool add(); + void reset_field() { DBUG_ASSERT(0); } void update_field() {} longlong val_int() { @@ -460,6 +459,7 @@ class Item_sum_window_with_row_count : public Item_sum_num void set_row_count(ulonglong count) { partition_row_count_ = count; } + void reset_field() { DBUG_ASSERT(0); } protected: longlong get_row_count() { return partition_row_count_; } private: |